I have a precompiled ASP.NET 4.5 web application that goes from working to errorring with the message:
System.Web.HttpException: The file '' has not been pre-compiled, and cannot be requested.
I’ve seen this before during deployments when not all of the precompiled files have been replaced in the bin folder. However in this case nothing has been updated or changed on the server.
From the way the error just starts appearing it seems as if the app pool is being recycled and the new worker process is having a file access problem. Nothing shows in either the application or system event logs indicating the app pool is being recycled (even with all of the app pool setting set to log all app pool events) or the app domain crashed/unloaded.
Doing an app pool recycle or iisreset fixes the issue and iis is able to serve the application again.
What could cause this type of behavior?
Environment
- Windows 2016 Datacenter
- Application is on the local drive
- Running under a domain account