Ext.NET1.3.0配置应用程序池集成和经典模式互换

Ext.NET1.3.0配置应用程序池集成和经典模式互换

在IIS7的应用程序池有两种模式,一种是集成模式,一种是经典模式。

在将应用程序发布到IIS的时候,应用程序池需要在集成的托管管道模式和经典的管道模式中选择。

经典模式的配置文件为:

 1 <system.web>
 2     <compilation debug="true" targetFramework="4.0"/>
 3     <customErrors mode="Off"/>
 4     <httpRuntime/>
 5     <authentication mode="Forms">
 6       <forms loginUrl="~/Login.aspx" timeout="2880"/>
 7     </authentication>
 8     <pages>
 9       <controls>
10         <add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext"/>
11       </controls>
12     </pages>
13     <httpHandlers>
14       <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false"/>
15     </httpHandlers>
16     <httpModules>
17       <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"/>
18     </httpModules>
19   </system.web>

集成模式的配置文件为:

<system.web>
    <compilation debug="true" targetFramework="4.0"/>
    <customErrors mode="Off"/>
    <httpRuntime/>
    <authentication mode="Forms">
      <forms loginUrl="~/Login.aspx" timeout="2880"/>
    </authentication>
    <pages>
      <controls>
        <add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext"/>
      </controls>
    </pages>
  </system.web>
<system.webServer> 
    <handlers>
      <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" name="myhandlers"/>
    </handlers>
    <modules>
      <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"/>
    </modules>
</system.webServer> 

这样就可以在两种模式直接切换了。

原文地址:https://www.cnblogs.com/zhangtingzu/p/6390792.html