使用Ext.Net时,配置文件的最简单写法

 

使用Ext.Net时,配置文件的最简单写法

<?xml version="1.0" encoding="utf-8"?>



<!--

  有关如何配置 ASP.NET 应用程序的详细信息,请访问

  http://go.microsoft.com/fwlink/?LinkId=169433

  -->



<configuration>

  <configSections>

    <section  name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />

  </configSections>

  <extnet scriptMode="Debug" theme="Gray"  />

  <system.web>

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

    <pages>

      <controls>

        <add assembly="Ext.Net" namespace="Ext.Net"  tagPrefix="ext"/>

      </controls>

    </pages>

    <httpModules>

      <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"/>

    </httpModules>

    <httpHandlers>

      <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false"/>

    </httpHandlers>

  </system.web>

  <system.webServer>

    <staticContent>

      <mimeMap fileExtension=".json" mimeType="application/json"/>

      <mimeMap fileExtension=".woff" mimeType="application/x-woff"/>

    </staticContent>

    <modules>

      <add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net"/>

    </modules>

    <security>

      <authorization>

        <remove users="*" roles="" verbs=""/>

        <add accessType="Allow" users="*" verbs="GET,POST,PUT,DELETE"/>

      </authorization>

    </security>

    <validation validateIntegratedModeConfiguration="false"/>

    <handlers>

      <add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler"/>

    </handlers>

  </system.webServer>

</configuration>

 

你可能感兴趣的:(.net)