IIS7 Publishing MVC3 encountered HTTP error 403.14-forbidden WEB server is configured not to list contents of this directory and login on failed for "IIS apppool\asp.net v4.0" issue

Source: Internet
Author: User

Question 1:

Publish MVC3 Error: 403.14-forbidden WEB Server is configured to not list 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.

<system.webServer>
<validation validateintegratedmodeconfiguration= "false"/>
<modules runallmanagedmodulesforallrequests= "true"/>
<directorybrowse enabled= "false"/>
</system.webServer>

To set the value of the <modules> section to True, directory browsing enabled or disabled is not actually affected.

If the file list is open after the above configuration, you also need to configure the mapping

Method:

Open the "Handler mapping Settings" for IIS and "Add script map" under the action Bar on the right

Request Path: *

Executable file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll

In general, there will be no problem, or re-install FRAMEWORK4 bar.

Question 2:

After publishing, the login screen can be displayed, jump page Access database times wrong, login on failed for "IIS Apppool\asp.net v4.0", found to be the "IIS apppool\asp.net v4.0" Web page without access to the database, A user login named "IIS apppool\asp.net v4.0" has been added to the database and all permissions have been added for use.

Operation Detailed procedure: Open SQL Server Manager studio, in "Security"-"Login name"-"right click" New Login "-" in the "General" select page to fill in the login name "IIS apppool\asp.net v4.0"-"in the server role" Select all role permissions under the page, OK.

Shown

If it doesn't work, try adding a login network service with the same permission settings as described above.

Question 3:

IIS configures Windows permissions to log on, and the page is always reporting HTTP 401.0 errors. An error accessing the page is not permitted.

All permissions added to the IUSR group and the user are still the same error, and later when IIS was configured, Windows authentication and Basic authentication were not installed

After installation, restart the IIS service double-click authentication and enable Windows authentication on anonymous authentication-right-click Edit so you can

IIS7 Publishing MVC3 encountered HTTP error 403.14-forbidden WEB server is configured not to list contents of this directory and login on failed for "IIS apppool\asp.net v4.0" issue

Related Article

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.