ASP files generates "404 - File or directory not found"

ID: 42
Created: 2005-01-01
Updated: 2005-06-20


IIS 6.0 is locked down by default. This means that dynamic content such as ASP files will not be executed until you (the administrator) have explicity allowed it. Only static content will be served by default. If you have not allowed the ASP Web Service Extension, and try to browse an ASP file, you will face this error message (or similar):

HTTP Error 404- File or Directory not found

Furthermore, if you look in the IIS Log File (located in %systemRoot%\system32\LogFiles\W3CNN, where NN is the identification number), you will see that the complete error code (including substatus code) is 404.2.

To allow ASP files, follow this:

Link(s)

KB 315122, "HTTP Error 404 - File or Directory not found" error message when you request dynamic content with IIS 6.0

Home | Notes Home | Copyright © 2002 - 2005 Kristofer Gäfvert