Categories
ASP ASP.NET IIS

“HTTP Error 404 – File or Directory not found” error message when you request dynamic content with IIS 6.0

I ran across this problem with an ASP page and found a solution on the Microsoft Support site.

Symptoms:
Active Server Pages (ASP) page, ASP.NET page, Internet Services API (ISAPI) application, or Common Gateway Interface (CGI) application on a Windows Server 2003 server running Internet Information Services (IIS) 6.0, give the following error messages:

  1. HTTP Error 404 – File Not Found
  2. HTTP Error 404 – File or Directory not found

Cause:
IIS 6.0 was set to serve only static HTML pages by default on Windows Server 2003

Solution:
Using the IIS manager Allow Active Server Pages under the Web service extensions node.