ParserCacheItem error

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

Guest

Since a couple of days I get reports of unhandled exception send by email by
way of the global.asax method. As it happens, two files produce the following
error a couple of times a day:

Message: ...\article1.aspx
Source: System.Web
TargetSite: System.Web.UI.ParserCacheItem GetParserCacheItem()
StackTrace: at System.Web.UI.TemplateParser.GetParserCacheItem()
at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem
....

The file itself is very simple: code-behind, no caching directive, just gets
article1 from a db and displays it on framework v1.1/windows 2003 server.
There is nothing relevant in the event log.

I have not been able to reproduce the error.

Anyone got an idea?
 
Hi neomason:

It might be a 404 (file not found error). You could check for this
specifically in your error handler:

Exception error = Server.GetLastError();
if (error is HttpException)
{
if (((HttpException)error).GetHttpCode() == 404)
{
// ...
}
}

HTH,
 
Back
Top