Internal Server Error.  The requested web page either has an error or does not exist...

Problem

You get this error when displaying a web page in your application:

Internal Server Error.  The requested web page either has an error or does not exist...

The application cannot find the start page.  The application may run correctly on your development machine, and may run correctly when run under your production environment’s default web site on Microsoft IIS.  However, the application fails to display the start page when running as its own web site under Microsoft IIS.

Solution

Disable custom error reporting in your application’s Web.config file in order to see a detailed stack trace of the location of the error message in your application:

customErrors mode="Off"

This generally yields sufficient information to identify and fix the underlying cause of this error.

If you move your application to the webroot folder, you may need to modify your application's Web.config file.

See Also

Part VII:  Troubleshooting Applications

Application Will Not Run

Application Runs But No Data is Displayed

Application Error Messages