MVC error published on IIS 7: The 403.14-forbidden WEB Server is configured not to list the contents of this directory
The solution in this tip is:
- If you do not want to enable directory browsing, make sure that you have configured the default document and that the file exists.
- Use IIS Manager to enable directory browsing.
- Open IIS Manager.
- In the features view, double-click Directory Browsing.
- On the Directory browsing page, in the actions pane, click Enable.
- Confirm that the Configuration/system.webserver/[email protected] attribute in the site or application configuration file is set to True.
According to this method, found that the Web page running interface into the directory structure, and later found to change the configuration file Web. config configuration file configuration section, the site can be used normally, record oh.
<system.webServer>
<modules runallmanagedmodulesforallrequests= "true"/>
</system.webServer>
To set the value of the <modules> section to True, directory browsing enabled or disabled is not actually affected.
If the above method has effect, open cmd as an administrator, run C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe-i,
Re-registering the. NET Framework
IIS7 Publishing MVC encounters an HTTP error 403.14-forbidden the WEB server is configured not to list the contents of this directory