Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
when i deploy the application to Live server i am getting this Error.
The file 'Default.aspx' has not been pre-compiled, and cannot be requested.

i added the placeholder control in this page, if i remove this control this will work, else it shows the same error message. what could be the problem. something we need to set for this control?
Posted

1 solution

Dear Friend,

The above error is quiet misleading due to the fact that this error may be because of many reasons like:-

1) Assembly missing.
2) Re-Deployment required.
3) Project in old version and build has been made in new version.
etc...

Please first open your application in which ever version of .Net you are using and if conversion is required then do it and then rebuild your whole application again, make new build of that and lastly republish it. I hope it will solve the problem. Pleas refer to the following link for more details on it:-

http://stackoverflow.com/questions/602117/how-to-fix-asp-net-error-the-file-nnn-aspx-has-not-been-pre-compiled-and-can[^]

Please don't forget to mark this as your answer if it helps you out.

Thanks
 
Share this answer
 
v3
Comments
Tech Code Freak 18-Feb-12 2:43am    
5up!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900