Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
"HTTP Error 404 - File or Directory not found" error message when you request dynamic content with IIS 6.0
Article ID: 315122 - View products that this article applies to.
This article was previously published under Q315122
When you request dynamic content such as an Active Server Pages (ASP) page, an ASP.NET page, an Internet Services API (ISAPI) application, or a Common Gateway Interface (CGI) application on a Microsoft Windows Server 2003 server that is running Internet Information Services (IIS) 6.0, you may receive one of the following error messages:
Error message 1
HTTP Error 404 - File Not Found
Error message 2
HTTP Error 404- File or Directory not found
By default, when IIS is installed on any version of the Windows Server 2003 family, IIS only serves static content (HTML).
Warning Enable dynamic content when you really want to use it. By default, IIS disables dynamic content for security reasons.
To permit IIS to serve dynamic content, the administrator must unlock this content in the Web service extensions node in IIS Manager. To do this, the administrator must either enable a pre-existing Web service extension or add a new Web service extension.
Enable a Pre-existing Web Service Extension in IIS 6.0
To permit IIS to serve content that requires a specific ISAPI or CGI extension that is already listed in the Web service extensions list, follow these steps:
To permit IIS to serve content that requires a specific ISAPI or CGI extension that is not already listed in the Web service extensions list, follow these steps:
For CGI applications, you must also follow these steps:
For more information about Web service extensions, search for "Enabling and Disabling Dynamic Content" in the IIS 6.0 Help documentation.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/332124/ )ASP.NET is not automatically installed on Windows Server 2003
Article ID: 315122 - Last Review: September 22, 2011 - Revision: 10.0