Exception

J

Just D.

What's that? I just added the unhandled exception handler to Global asax.cs
in
protected void Application_Error(Object sender, EventArgs e)
and started receiving these reports every time when I start or even compile
my web application.

System.IO.FileNotFoundException: D:\MyAppt\get_aspx_ver.aspx

at System.Web.UI.TemplateParser.GetParserCacheItem()

at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String
virtualPath, String inputFile, HttpContext context)

at System.Web.UI.TemplateControlParser.GetCompiledInstance(String
virtualPath, String inputFile, HttpContext context)

at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String
virtualPath, String inputFile, HttpContext context)

at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String
requestType, String url, String path)

at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)



I didn't find any references to this file D:\MyAppt\get_aspx_ver.aspx in my
application. Is it a .NET joke?

Just D.
 
J

Joe Mayo

Hi Just D,

ASP.NET makes a request for this page to find version information. The only
work-around that I know about is to add a dummy page to your root directory
named get_aspx_ver.aspx and the exeception won't be raised anymore.

Joe
 
J

Just D.

Thanks, I found another solution on the Internet - if the message string has
this file name, just ignore the whole exception. It works fine.

Just D.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top