Loading ...

Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged.

 /5
0 (0votes)

There are two common errors regarding VS 2003 projects.

 1. Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged.

First of all, make sure that in your Web.Config file, you have Debug=True in the Compilation property as:

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

If your project still shows the same error, then to fix this:

1. Open IIS and select your web project.
2. Right click you project and go to Properties.
3. See the Directory tab. Make sure that under Applicaiton Settings, you project has an application name (and not Default). If you see Default written there, then click the Create button.
4. Run your project again.

This error can also surface in VS 2003 if you have deleted the Web.Config file from the project. Though the project will compile and you can run the app from the browser by directly typing the form url (like http://localhost/WebApp1/WebForm1.aspx), but VS 2003 will not be able to run the app and will give the same error as above. The reason for this being the fact that in the absence of the app specific Web.Config file, ASP.NET will pick up settings from the machine.config file (under C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG). In this file we have DEBUG=FALSE in the compilation property, and if we change it manually and set it to TRUE, the app will run from VS 2003.

2. Error while trying to run project: Unable to start debugging on the web server.

If you get this “shorter” version of the first error, then first check if you have both ASP.NET 2.0 as well as 1.1 installed on the same machine or not. If yes, then open your porject in IIS, rgiht click and go to properties and see the ASP.NET tab (its will be there only if ASP.NET 2.0 is installed). Now check the version of the ASP.NET here and make sure you are using the right one. For VS 2003, it should be set to 1.1.

3. Error while to run project : unable to start debugging on the web server. Debugging failed because integrated window autherication is not enabled.

Go to IIS->right click your Virtual directory->Properties->Directory Security tab->click Edit button->Make sure that Intergrated Windows Authentication button is checked.

A helpful link from MS on such errors:

http://support.microsoft.com/kb/306172

Natty Gur has another reason for this error :

http://weblogs.asp.net/ngur/archive/2004/05/26/142414.aspx

 

Comments (no comments yet)

Top Posts