MVC error published on IIS 7: The 403.14-forbidden WEB Server is configured not to list the contents of this directory
Toss for a while, tips inside the solution 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.
-------just need to add the following information in the VS configuration file----
<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.
**************************************************************************
* "Author": Zhang Shanyu
* "Date": June 30, 2014
* "URL": http://www.cnblogs.com/shanyou/archive /2012/07/01/2572273.html
* "Notice":
* 2, please respect the original results, reproduced and quoted please specify the author and source.
* 3, this article must be reproduced and quoted in full text, any organization and individuals are not authorized to modify any content, and is not authorized to be used for business.
* 4, this statement is part of the article, reprint and reference must be included in the original text.
***********************************************************************************************