I have the same problem like this : 403 Forbidden when Deploying asp.net 4.0 MVC 3 site to IIS 7
我有一个类似的问题:403在将asp.net 4.0 MVC 3站点部署到IIS 7时被禁用。
I'm in the same configuration. When i work on my computer and i heat F5
, it's ok, the website is visible with this url : localhost:8754
我的构型是一样的。当我在我的电脑上工作并加热F5时,它是ok的,网站是可见的url: localhost:8754
But when i try to go on it by the network, i've a 403
error.
但是当我试图通过网络访问时,我有403个错误。
I'm running under IIS7
with and my pool application is 4.0
.
我在IIS7下运行,我的池应用程序是4.0。
My website is the example create by VS2012
. I don't change anything on it.
我的网站就是VS2012创建的例子。我什么都没改变。
1 个解决方案
#1
1
add this to your web.config
将它添加到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
http://www.iis.net/learn/get-started/introduction-to-iis/iis-modules-overview的先决条件
#1
1
add this to your web.config
将它添加到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
http://www.iis.net/learn/get-started/introduction-to-iis/iis-modules-overview的先决条件