Alex Mueller on Software and Technology 
Thursday, April 12, 2007

I noticed this intermittent error with an ASP.NET 2.0 web application about a month ago. I thought I had fixed it when I recycled my application pool in IIS. Since I could not reproduce the error, nor could other users, I closed the reported bug in Bugzilla, and moved on with application development. This bug reared its ugly head again this morning, and my sneaking suspicion about this issue influenced me to investigate further.

The actual error is "Could not load file or assembly 'App_Web_xxxxxxxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified," where "App_Web_xxxxxxxx" is some random, temporarily generated name, making each error unique. The stack trace containing more details seemed to be filled with red herrings. The errors referenced ASP.NET temporary files, living within the Microsoft.NET/Framework directory. Recycling the app pool, deleting the ASP.NET temporary files, bouncing IIS, and stopping the Indexing Service all seem to help, but only in the short term.

Microsoft recognizes this as an issue and has a hotfix availible to repair the ASP.NET 2.0 framework. They plan to fix this issue in the next service pack for the 2.0 framework, but if you cannot wait until then, give Microsoft a telephone call and have them email you the hotfix. This is was I did, and so far, so good. The errors are gone, and users are happy again.

Thursday, April 12, 2007 8:05:32 PM (Mountain Standard Time, UTC-07:00) | Comments [0] | Technology#
Comments are closed.
MuellerDesigns.net
Search
On This Page
PowerShell Documentation
Automate Daily Tasks with PowerShell
SketchPath XPath Editor
Software Testing - Revisited
Architecting Buildings and Software
NBCOlympics.com with Silverlight
Marker Interfaces and C# Attributes
The Phone Screen
Working with ASP.NET MVC and MvcContrib
Thanks to BDD
Twitter
The Opposite of a Singleton?
Removing Duplicate Code in Functions
Add Vista Themes to Longhorn
Changing File Ownership In Vista and Longhorn
Most Popular
JavaScript ReplaceAll Functionality
What is polymorphism?
What is composition?
Sorting with IComparable and IComparer
Applying the Observer Pattern in ASP.NET
MVP in ASP.NET
What is abstraction?
What is encapsulation?
What is a class?
What is inheritance?
Authentication in ASP.NET
Calendar Controls
XPathNavigator.CheckValidity new for 2.0
SQL Server 2005 Connection Issues
Auto-attach to process '[####] aspnet_wp.exe' on m...
What is an object?
FreeTextBox
VMWare and VPC
An Example of Reflection using C#
Caring for the Team
Archive
Links
Categories
My Local Blog Map
Blogroll
About
Powered by:

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2009
MuellerDesigns.net

Sign In

Help Those In Need
The Hunger Site
Ronald McDonald House Charities (RMHC) of Western Washington & Alaska