2

我有同样的问题: 403 Forbidden when Deploying asp.net 4.0 MVC 3 site to IIS 7

我的配置相同。当我在我的电脑上工作并加热F5时,没关系,该网站通过以下网址可见:localhost:8754

但是当我尝试通过网络继续它时,我有一个403错误。

我正在运行IIS7,我的池应用程序是4.0.

我的网站是由VS2012. 我没有改变它的任何东西。

4

1 回答 1

1

将此添加到您的 web.config

  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"></modules>
    <handlers>
      <remove name="UrlRoutingHandler"/>
    </handlers>
  </system.webServer>

http://www.iis.net/learn/get-started/introduction-to-iis/iis-modules-overview#Precondition

于 2013-01-31T01:39:36.523 回答