18 March 2011

The file 'XXX.aspx' has not been pre-compiled, and cannot be requested.

Development Tool: Microsoft Visual Studio 2008
Project Platform: ASP.NET Web
 
You are trying to browse your ASP.NET web after published it on your web server, but end up Windows giving you this error message in the browser: "The file 'XXX.aspx' has not been pre-compiled, and cannot be requested."
 
The weird part is, you already pre-compile the source codes, rights?
 
Here is the SOLUTION:
 
a). Publish your ASP.NET web project as usual.
 
b). IMPORTANT: Manually copy all of the DLL files into the <Pre-Compiled_Output_Folder>\bin folder. Those DLL files can be Crystal Reports DLL file, if you are using Crystal Reports in your ASP.NET web project.
 
c). Then, publish your ASP.NET web project on your web server as usual.
 
Have fun!

No comments: