首页 > Web开发 > 详细

MVC5 IIS7 403错误

时间:2018-09-27 01:21:09      阅读:301      评论:0      收藏:0      [点我收藏+]

问题背景

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>

 

MVC5 IIS7 403错误

原文:https://www.cnblogs.com/polk6/p/8724185.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!