zoukankan      html  css  js  c++  java
  • .net webconfig中配置httphanlder无法生效的问题

    <system.web>
    <compilation debug="true" targetFramework="4.6.1"/>
    <httpRuntime targetFramework="4.6.1"/>
    <httpModules>
    <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
    </httpModules>
    <httpHandlers>
    <add path="comet_broadcast.asyn" type="AsnyHandler" verb="POST,GET"/>
    </httpHandlers>
    </system.web>

    这是iis7.0(集成模式)中httphandlers的配置方法,因为我的是iis6.0所以配置文件扩展名.asyn的时候一直报404错误,后来发现iis6.0是经典模式应该在

    <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
    <remove name="ApplicationInsightsWebTracking"/>
    <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"
    preCondition="managedHandler"/>
    </modules>
    <handlers>
    <add name="comet_broadcast" path="comet_broadcast.asyn" type="AsnyHandler" verb="POST,GET"/>
    </handlers>
    </system.webServer>中进行配置handlers而不是配置httphandlers。

    详见:http://www.mamicode.com/info-detail-1848530.html

  • 相关阅读:
    this和$(this)的关系
    单色边表格
    php概率算法
    jQuery Ajax 参数解析
    拍拍CPS入门使用
    飞鸽端口被占
    浏览器调试工具技巧分享
    事件click,bind,click
    jQuery旋转插件—rotate
    利用谷歌API生成二维码
  • 原文地址:https://www.cnblogs.com/javazyh/p/9548133.html
Copyright © 2011-2022 走看看