Compiler Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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(CompilerResult
results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, Strin
sourceFile, String sourceString
at System.Web.Compilation.SourceCompiler.CompileAndCache(
at System.Web.Compilation.SourceCompiler.CompileSourceStringIntoType(Strin
sourceString, String typeName, CodeLinePragma linePragma, IDictionar
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, Strin
physicalPath, HttpContext context
at SWU.SimpleHandlerFactory.GetHandler(HttpContext context, Strin
requestType, String virtualPath, String path
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, Strin
requestType, String path, String pathTranslated, Boolean useAppConfig
a
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionSte
..Execute(
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean
completedSynchronously)
SWU = System.Web.UI
 
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
 
Back
Top