IIS Web.config httpHandlers handlers 集成模式与经典模式下的配置

IIS Web.config httpHandlers handlers 集成模式与经典模式下的配置

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

<configuration>
  <!--经典模式-->
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <httpHandlers>
      <add verb="GET,POST" path="comet_broadcast.ashx" type="Comet_Aspnet.Comet.AsyncHandler, Comet_Aspnet"/>
    </httpHandlers>
  </system.web>

  <!--集成模式-->
  <system.webServer>
    <!--禁止验证集成模式,来避免错误-->
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="comet_broadcast" verb="GET,POST" path="comet_broadcast.ashx" type="Comet_Aspnet.Comet.AsyncHandler, Comet_Aspnet"/>
    </handlers>
  </system.webServer>
</configuration>


热门推荐