Visual Studio Debugger
Error: The web server is not configured correctly

This error reads:

The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.

Possible causes of this error include:

  • Trying to debug a .NET web application that was copied to a different machine, manually renamed, or moved.

  • Not having enough IIS connections. (See "Limiting Connections" in the IIS Operations Guide.)

If you are trying to debug an ASP.NET project

  • Check to see that the DEBUG verb is associated with .aspx. See How to: Associate DEBUG Verb with Extension for more information.

  • Check to see that the Web site has been configured as an Application in IIS.

    1. From the Start menu, choose Programs, then Administrative Tools, and click Internet Information Services.

    2. In the Internet Information Services dialog box, click the tree control for your machine, open the Web Sites folder, and find your web site.

    3. Right-click Web Site and choose Properties.

    4. In the Web Site Properties window, select the Directory tab.

    5. Under Application Settings, look for the Remove or Create button.

      If the button says Remove, your website is already configured as an application.

      If the button says Create, click the button to configure your website as an application.

    6. Click OK.

If you are trying to debug an ATL Web application

See Also

Reference

Tags :


Community Content

Rachel Martin
The web server is not configured correctly

I was receiving this error until I added the defaultLanguage attribute to the compilation element in the web.config file as follows:

<compilation debug="true" defaultLanguage="c#" >

I was using Visual Studio 2008 Pro, WinXP Pro.


GHunt4
ASP.NET
I am to take over support for an existing VB.NET application. I have installed IIS and VS 2008. I try to debug the application and I am receiving this error. If I look under the IIS tool and look at the properties for my application it shows the ASP.NET version as 4.0.20506. I was told I need to run this under version 2.0, so I change the version in the dropdown and "Apply" and "Save". I then reopen it and it has gone back to version 4.0 again. Any ideas??
Tags :

Page view tracker