问题背景

MVC5部署到IIS7中显示403错误。

 

解决方案

<system.webServer> → <modules> 节点下的 ApplicationInsightsWebTracking 修改为 UrlRoutingModule-4.0

<system.webServer>
    <modules>
        <remove name="ApplicationInsightsWebTracking" />
        <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
    </modules>
</system.webServer>

 修改为:

<system.webServer>
    <modules>
        <remove name="UrlRoutingModule-4.0" />
        <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
    </modules>
</system.webServer>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-02-08
  • 2021-05-31
  • 2022-01-10
  • 2021-08-14
  • 2021-09-13
猜你喜欢
  • 2021-04-10
  • 2021-10-02
  • 2021-08-26
  • 2022-03-08
  • 2021-09-25
  • 2021-08-24
相关资源
相似解决方案