http error 403.14- forbidden

北城以北 提交于 2020-01-02 07:28:26

问题


I successfully hosted my test html page in iis8.

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?

My Test page is like

<html>
<body>
Welcome
</body>
</html>

回答1:


I've been trying to reproduce it on my machine but couldn't reproduce it.

However, googling around around I found out that some people resolved the issue by running aspnet_regiis -i command, like so:

  1. Run a command prompt as Administrator.

  2. Copy and paste the following text “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i”

The path may vary depending on your .NET Version.




回答2:


Just add attribute: runAllManagedModulesForAllRequests="true" in <modules>, inside your Web.config.

Final result:

<configuration>
   <system.webServer>
      <modules runAllManagedModulesForAllRequests="true">


来源:https://stackoverflow.com/questions/18031653/http-error-403-14-forbidden

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!