Introduction
After installing Visual Studio .NET and refreshing the page a couple of times, I used to get this error frequently. The only resolution was to wait for up to 5 to 10 minutes or reboot the system since a folder in Temporary ASP.NET files containing the web. config gets locked up automatically.
After searching for a while in KBs, and forums, I found the closest matching solution, which solved the problem. Just wanted to share with other readers who would also be experiencing this issue. The problem occurs significantly if you touch the web. config and ASP.NET have significant memory consumption (as seen in Windows Task Manager).
There is a service called Indexing Service which runs in the system. During F5, ASP.NET tries to JIT compile the new DLL (as my understanding goes) and when simultaneously ASP.NET and Indexing service goes to the specified set of cache files, the deadlock occurs and ASP.NET throws this exception.
Solutions
- Keep the Indexing Service manual or stop it.
- In Indexing Service Preferences, make C:/Winnt/Microsoft.NET to be excluded or placed in the exclusion catalog so that the Indexing Service will not access this location.