An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

今天在学习自己写ASP.NET 框架的时候安装玩IIS7.5以后,有用使用自定义的HttpMoudle,IIS出现了如下错误:

HTTP Error 500.22 - Internal Server Error

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

解决方法有两个,一个是在线程池中将其改成classic(经典模式)不过不推荐这么干

还有一种方法是在配置文件中添加一段:

<system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
</system.webServer>

http://www.kissit.com.cn/
原文地址:https://www.cnblogs.com/Junelee1211/p/2385533.html