Home Fix for : System.Web.HttpException: The file has not been pre-compiled, and cannot be requested
Reply: 0

Fix for : System.Web.HttpException: The file has not been pre-compiled, and cannot be requested

user851
1#
user851 Published in April 21, 2018, 4:01 am

We published our website and everything worked fine. After few days, something strange happened. we're getting "The file 'xxx.cshtml' has not been pre-compiled, and cannot be requested."

Resetting application pool, even restarting IIS didn’t help us to resolve the problem. Even resetting the Web server machine didn't fix the problem. but when we re-copying the published files again, web site starts working again. We compared the problem website files with the new files, all are the same. nothing is missing. so every two-three days, we are getting the same error and the only way we can fix it is recopying the files again.

We even copied website when we got an error and then create another website based on those files and it works fine! Any suggestion what can cause this problem?

Thanks in advance.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.304933 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO