Friday, 1 February 2008

Could not load file or assembly App_Web_XXX

Came across a completely random exception today on a new web server:

System.IO.FileNotFoundException: Could not load file or assembly 'App_Web_XXX, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'App_Web_XXX, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'

After some digging, I found issue is now resolved in .Net 2 SP1, which I recommend you all download if you haven't done so already. You can alternatively download the individual fix for this from Microsoft Support. If you are unable to install the fix or service pack there are a couple of workarounds that may work:

1. Editing the aspx file throwing the error (if appropriate)
2. Clear the Temporary ASP.Net Files folder and restart the application pool
3. Setting batch="false" in the web.config file compilation section (it is true by default)

All the workarounds are fairly simple and harmless except option 3. This has other performance implications; therefore may not be the best option for a production environment.

3 comments:

ritesh said...

It might be due to something with framework.
so can get hotfix 915782. It may resolve this issue. Here's the article:

http://support.microsoft.com/kb/915782/en-us

Ritesh Ravlani

Neil kilbride said...

I think that was also resolved in the .Net 2 SP1 download too - which most of us should have now :)

Thanks Ritesh.

Anonymous said...

米蘭情趣用品情趣用品情趣飛機杯自慰套充氣娃娃AV女優按摩棒跳蛋潤滑液角色扮演情趣內衣自慰器穿戴蝴蝶變頻跳蛋無線跳蛋電動按摩棒情趣按摩棒丁字褲G點SM後庭

視訊美女視訊做愛


網頁設計
網頁設計