Saturday, November 12, 2011

Why Do I Receive a "The page cannot be found" Error With ASP On Windows Server 2003?


When you have installed ASP on Windows Server 2003, you may receive the following 404 - Page Not Found error:

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
  • Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
  • If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
  • Click the Back button to try another link.

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)


Technical Information (for support personnel)
  • Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
  • Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site SetupCommon Administrative Tasks, and About Custom Error Messages.

This error is only thrown with dynamic ASP pages; static HTML files, graphics etc are served just fine. 

This error is caused by the fact that IIS 6 disallows the ASP Web Service Extension. To fix this, follow these steps:
  1. Open up the Internet Information Services (IIS) Manager (which you find under Administrative Tools)
  2. Expand your server
  3. Select Web Service Extensions
  4. In the right hand pane, click ASP (or a later version number) and then click the Allow button.
From now on, IIS is allowed to serve ASP pages, and won't throw 404 errors for every page in your site.

No comments: