I recently came across an error that did not make any sense while deploying pre-compiled ASP.NET applicatication. This error did not tell me what the problem was. After doing some research online I came across asp.net forum and this. The solution basically came down to copying the new assemblies that I just added to my project to the bin folder of the deployment servers. These assemblies were added to my (on my machine) GAC (global assembly cache) where they are available to all the applications and do not need to be copied to the bin folder on my machine. But they need to be copied to servers where these new asseblies are not registered in GAC. I just wish the runtime error could be a little more informative instead of completely giving me the wrong message.
So make sure you have all the assemblies either present on the deployment servers or just copy them when building and pre-compiling ASP.NET applications.
Server Error in '/' Application.
The file '/default.aspx' has not been pre-compiled, and cannot be requested.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The file '/default.aspx' has not been pre-compiled, and cannot be requested.
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433