zoukankan      html  css  js  c++  java
  • 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> 

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

  • 相关阅读:
    java 动态代理
    android中几个很有用的的api
    android 静态和动态设置 Receiver的 android:enabled值
    一个文件查看你选择 Run as Android applications 都干了啥
    ViewStub 的使用
    Linux 常用命令速查
    android自定义View&&简单布局&&回调方法
    西厢记 随笔
    git 命令使用速查手册( 个人版)
    Arraylist源码分析:
  • 原文地址:https://www.cnblogs.com/zhangtingzu/p/6390792.html
Copyright © 2011-2022 走看看