HTTP Error 404 - File or directory not found

Saturday, June 26, 2010


Symptom

When requesting dynamic content such as an ASP or ASP.NET page on a Microsoft Windows Server 2003 server that is running Internet Information Services (IIS) 6.0, the following error message are displayed:

"HTTP Error 404 - File or directory not found."



Cause
By default, IIS disables dynamic content on any version of the Windows Server 2003 family for security reasons.

Resolution
1. Open IIS Manager, expand the master server node, and then select the Web Service Extensions node.



2. Check whether the extension of the dynamic content is listed in the Web Service Extension list.

3. If it is listed, then check the status. If the current status is Prohibited, click the Allow button.

4. If it is not listed, you need to create a new extension. In the right pane of the IIS Manager, click Add a new Web service extension under Tasks. In the Extension name box, type a name for the extension that you want to add.

In the Required files box, click Add, and then select the path and the name of the file that will handle requests for the specific extension. After you select the path and the file name, click OK.



Click to select the Set extension status to Allowed check box.

Click OK to save your changes.