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

这里主要把集成模式改成经典模式

解决方案一:

解决方案二:

修改配置文件web.config

<configuration>

  <system.web>      

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

     <httpRuntime targetFramework="4.5" />   

    <httpModules>    

       <add  name="MyModule1" type="iis.UrlReWirte"/>  

     </httpModules>

    </system.web>  

</configuration>

修改为

<configuration>

  <system.web>      

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

     <httpRuntime targetFramework="4.5" />   

     </system.web>  

   <system.webServer>  

         <modules>      

      <add  name="MyModule1" type="iis.UrlReWirte"/>  

     </modules>  

   </system.webServer>

</configuration>

转载自:http://blog.csdn.net/yf505261213/article/details/8462559

原文地址:https://www.cnblogs.com/youmeng/p/3673106.html