来自未预编译的ASP.NET网站的预编译相关错误 [英] Precompilation related error from an ASP.NET website that is NOT precomplied

查看:177
本文介绍了来自未预编译的ASP.NET网站的预编译相关错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个XCOPIED生产的ASP.NET网站。我不使用Visual Studio发布此网站。我只是将所有aspx和后面的代码复制到生产中。没有发布配置文件。我的生产服务器运行IIS 7.5,集成管道。如果我将App_Code目录添加到网站的根目录,我会收到以下错误:

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:


目录/ App_Code是不允许的,因为应用程序是
预编译

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

我注意到的另一个问题是我的
global.asax文件的Application_Start没有被调用。 (我确实知道这一点,因为我抛出异常)

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)

推荐答案

不知何故,precompiled.config文件已经投入生产。不知道如何删除该文件解决了App_Code目录错误并且没有调用Application_Start方法。

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.

这篇关于来自未预编译的ASP.NET网站的预编译相关错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆