大网数据广告活动
Web服务器与PHP

HTTP Error 403.14 when You Open IIS Webpages

· 52CE 我爱测

Helps resolve the HTTP 403.14 The web server is configured to not list the contents of this directory error when you visit an Internet Information Services webpage.

This article helps you resolve the "HTTP Error 403.14 - Forbidden - The web server is configured to not list the contents of this directory" error that occurs when you open an Internet Information Services (IIS) webpage.

Original product version:   Internet Information Services
Original KB number:   942062

Note:

The target audience for this article is website administrators and web developers.

Symptoms

When you visit a website hosted on IIS, you receive an error message that resembles the following one:

Server Error in Application "<application name>"
HTTP Error 403.14 - Forbidden
HRESULT: 0x00000000
Description of HRESULT : The Web server is configured to not list the contents of this directory.

Resolution for users

If you're a user, you should contact the website administrators to notify them that this error has occurred for this web address.

Resolution for site administrators

This problem occurs because the website doesn't have the Directory Browsing feature enabled or the default document isn't enabled or configured properly. To resolve this problem, use one of the following methods:

Method 1: Enable the Directory Browsing feature in IIS

To resolve this problem, follow these steps:

  1. Select Start > Run, type inetmgr.exe, and then select OK to start IIS Manager.
  2. In IIS Manager, expand <server name> > Web sites, and select the website that you want to change.
  3. In the Features view, double-click Directory Browsing.
  4. In the Actions pane, select Enable.

Method 2: Add a default document

To resolve this problem, follow these steps:

  1. Select Start > Run, type inetmgr.exe, and then select OK to start IIS Manager.
  2. In IIS Manager, expand <server name> > Web sites, and then select the website that you want to change.
  3. In the Features view, double-click Default Document.
  4. In the Actions pane, select Enable.
  5. In the Features view, the Default Document must be listed (preferably first). If not, in the Actions pane, select Add, type the name of the default document in the Add Default Document box, and then select OK. The file must exist in the site's root folder.

Method 3: Enable the Directory Browsing feature in IIS Express

Note: This method is for the web developers who experience this issue when they use IIS Express.

  1. Open a Command Prompt window, and navigate to the IIS Express folder on your computer. For example, type the following command at the command prompt, and then select <kbd>Enter</kbd>:

    cd C:\Program Files\IIS Express
    
  2. Type the following command, and then select <kbd>Enter</kbd>:

    appcmd set config /section:directoryBrowse /enabled:true
    

    For more information about Appcmd.exe command lines, see Getting Started with AppCmd.exe.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 10/22/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。