HTTP错误403.14-禁止 [英] http error 403.14- forbidden
问题描述
我在 iis8 中成功托管了我的测试html页面.
I successfully hosted my test html page in iis8.
当我尝试托管已创建的网站时,我却拒绝了 http 错误403.14.甚至我将默认文档设置为带有框架的起始html页面.该网站有几个文件夹内部文件夹.当我启用目录浏览时,它将列出该页面.如果我禁用它,则会显示403.14错误.
While I try to host the already created site I got the http error 403.14 forbidden. Even I set the default document as my starting html page which has the frame. The website has several folder inner folders. While I enable the directory browsing it will list the page. If I disable it shows 403.14 error.
我该怎么做才能解决此问题?
What can I do to resolve this issue?
我的测试页面就像
<html>
<body>
Welcome
</body>
</html>
推荐答案
只需在Web.config中的<modules>
中添加属性:runAllManagedModulesForAllRequests="true"
.
Just add attribute: runAllManagedModulesForAllRequests="true"
in <modules>
, inside your Web.config.
最终结果:
<configuration>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
这篇关于HTTP错误403.14-禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!