问题
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:
Run a command prompt as Administrator.
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