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

HTTP Error 404.2 when you visit a web page

· 52CE 我爱测

This article describes a problem where you might receive an error message when you try to visit a web page that is hosted on IIS 7.0.

This article helps you resolve the problem where an unexpected error may be thrown when you visit a web page that is hosted on a computer that is running Internet Information Services (IIS) 7.0.

Original product version:   Internet Information Services 7.0
Original KB number:   942040

Symptoms

When you try to visit a Web page that is hosted on a computer that is running IIS 7.0, you may receive the following error message:

Server Error in Application "application name"
HTTP Error 404.2 - Not Found HRESULT: 0x800704ec
Description of HRESULT: The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.

Cause

This issue occurs because the requested Internet Server API (ISAPI) resource or the requested Common Gateway Interface (CGI) resource is restricted on the computer that is running IIS 7.0.

Resolution

To resolve this issue, configure the restriction on the ISAPI and CGI Restrictions page to allow the requested ISAPI resource or the requested CGI resource. Follow these steps to resolve this issue:

  1. Select Start, type Inetmgr in the Start Search box, and then select Inetmgr in the Programs list.

    If you're prompted for an administrator password or for confirmation, type the password, or select Continue.

  2. Locate the level that you want to configure.

  3. In Features view, double-click ISAPI and CGI Restrictions.

  4. Right-click the restriction that restricts the requested ISAPI resource or the requested CGI resource, and then select Allow.

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 03/31/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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