HTTP 错误 500.22 - Internal Server Error 检测到在集成的托管管道模式下不适用的 ASP.NET 设置。

HTTP 错误 500.22 - Internal Server Error

检测到在集成的托管管道模式下不适用的 ASP.NET 设置。

 

出现错误时浏览图:

 

HTTP 错误 500.22 - Internal Server Error 检测到在集成的托管管道模式下不适用的 ASP.NET 设置。

 

处理方式有两种:

1.在IIS中将管道托管模式改成“经典”

如图:HTTP 错误 500.22 - Internal Server Error 检测到在集成的托管管道模式下不适用的 ASP.NET 设置。

 

 

2:修改web.config配置。(本人建议用第二种)

(1).在system.web配置中添加配置

  <system.web>      

    <compilation debug="true" targetFramework="4.5" />   

     <httpRuntime targetFramework="4.5" />   

     </system.web>  

 

(2).

在web.config中找到节点<system.webServer>

如果没有就在<configuration>节点下创建一个这样的节点.

其次:在 <system.webServer> 节点下插入配置,配置如下。

   <system.webServer>  

         <validation validateIntegratedModeConfiguration="false" />

   </system.webServer>