IIS7 Publishing MVC encounters an HTTP error 403.14-forbidden the 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

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.
      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.

<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

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.