Precompilation related error from an ASP.NET website that is NOT precomplied

百般思念 提交于 2019-12-07 08:10:48

问题


I have an ASP.NET website that is XCOPIED to production. I do not publish this website using Visual Studio. I just copy all the aspx and code behind pages to production. There is no publish config file. My production server is running IIS 7.5, integrated pipeline. If I add an App_Code directory to the root directory of the website I get the following error:

The directory /App_Code is not allowed because the application is precompile

Another issue I noticed is that my global.asax file's Application_Start is not being called. (I know this for sure as I Throw an Exception from it)


回答1:


Somehow a precompiled.config file had made it to production. Don't know how but deleting that file resolved the App_Code directory error and the Application_Start method not being called.



来源:https://stackoverflow.com/questions/15422217/precompilation-related-error-from-an-asp-net-website-that-is-not-precomplied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!