Kendar.org


Go to content

File does not exist

Development > C#

Hello everyone!

How many times you have seen this nasty error:


System.Web.dll!System.Web.StaticFileHandler.ProcessRequestInternal
...
...long stack trace
...
A first chance exception of type 'System.Web.HttpException' occurred in System.Web.dll
Additional information: File does not exist.

That is nearly impossible to debug if not tryng to decompile stuffs or other time consuming tasks like checking every single file of the project (that is really a hard work if you have to deal with a huge project)

Now i reached a solution, that is a simple custom httpHandler that can be added while debugging these issues, you can simply add it to your Web.Config and now you will find finally a true FileNotFoundException with the file you where desperately searching for!!!

You can download it at this address

Good Coding!!



Copyright E.D.R. 2005-2008 | info@kendar.org

Back to content | Back to main menu