05.30.06
Could not load file or assembly App_Web_***** Error (.NET 2.0)
I recently received the following error randomly:
########## System.IO.FileNotFoundException ##########
Could not load file or assembly ‘App_Web_*******, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.
It seems that .NET 2.0 has some problems to handle temporary files. After googling a lot regarding this issue during the past few months, I found a temp solution:
The solution is to modify the offending file a bit. For example, add a space and then delete the space, then save the file. Refresh the page at the end.
Here is a post on ASP.NET forum addressing this problem:
http://forums.asp.net/1290177/ShowThread.aspx
There is a hotfix from Microsoft as one of the persons on forum mentioned, but nobody knows whether the hotfix can resolve the problem. I will continue to research on this issue, and post my update later.
Jason Kealey said,
June 28, 2006 at
Thanks for the pointer.
Sadly, seems like no real solution has been offered yet.
Chris Pietschmann said,
February 28, 2007 at
No one on the ASP.NET forums thread you posted seems to figured out an end all answer.
Did you end up figuring out a permanent solution to this issue?
andy Foster said,
August 9, 2007 at
Here is a better fix:
In your web.config file, add:
batch=false
to the seciton, eg.
I read this elswhere and dont know why it works, but it did for me.