Compiler Error
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.aspnet.

Post a new message to this list...

DelC
In the latest version of our Web Application we have started seeing the following error message - "External component has thrown an exception", Stack Trace is shown below.
Only minor bug fixes in the .vb codebehind files have been done between a previous version that was fine and this one.
I have googled on this but not found any answer or suggestions as to where to start looking. Is this error in my code (.vb or .aspx) or a build option or deployment issue ?

The application is built and deployed to .Net Framework 1.0 and runs on Win2k SP4.

External component has thrown an exception. in System.Web
at System.Web.Compilation.BaseCompiler.ThrowIfCompilerErrors(CompilerResults
results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, String
sourceFile, String sourceString)
at System.Web.Compilation.SourceCompiler.CompileAndCache()
at System.Web.Compilation.SourceCompiler.CompileSourceStringIntoType(String
sourceString, String typeName, CodeLinePragma linePragma, IDictionary
assemblies, Type compilerType, CompilerParameters compilParams)
at SWU.SimpleWebHandlerParser.CompileSourceCode()
at SWU.SimpleWebHandlerParser.GetCompiledTypeInternal()
at SWU.SimpleWebHandlerParser.GetCompiledType()
at SWU.SimpleWebHandlerParser.GetCompiledTypeFromCache()
at SWU.WebHandlerParser.GetCompiledType(String virtualPath, String
physicalPath, HttpContext context)
at SWU.SimpleHandlerFactory.GetHandler(HttpContext context, String
requestType, String virtualPath, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)
at
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep
..Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
SWU = System.Web.UI
Reply to this message...
 
    
Natty Gur
Hi,

It's hard to know but your Stack Trace implies that something goes wrong
in the dynamic process of creating assembly that represent the page HTML
definition. What I suggest:

1) Delete the cache of your application from asp.net temporary files
directory located under C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322.

2) Double check with source safe for changes between the last deployed
version and the current one in the pages HTML.

HTH

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply to this message...
 
 
System.CodeDom.CodeCompileUnit
System.CodeDom.CodeLinePragma
System.CodeDom.Compiler.CodeDomProvider
System.CodeDom.Compiler.CompilerParameters
System.CodeDom.Compiler.CompilerResults
System.Collections.IDictionary
System.Web.HttpApplication
System.Web.HttpContext




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com