403.14-forbidden WEB Server is configured not to list the contents of this directory

Source: Internet
Author: User

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.
      1. Open IIS Manager.
      2. In the features view, double-click Directory Browsing.
      3. 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.
***********************************************************************************************

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.