views:

273

answers:

5

I have this message when I start debug in VS 2008:

Error while trying to run project: Unable to start debugging

Because of this I cannot debug any programs any more. Any ideas what causes this?

A: 

Sometimes it means the URL you have setup for the project in the Project Properties doesn't match what it is in IIS.

Caleb
A: 

Assuming a client app and not a web app, there are a few things to try:

  1. Make sure you run Visual Studio as an admin (elevated).
  2. Make sure you have cleanly built your project and have matching symbols (.pdb and .exe have same timestamp).
  3. Make sure you are not already debugging the app with VS or a different debugger.
jeffamaphone
A: 

This is also possible when in VS->Server Explorer Application debugging is enabled or CLR/SQL debugging is enabled..

Disabling that might solve the issue..

Vinodonly
what do you mean. plz help me if you can.thank
Hashim Al-Arab
A: 

Verify that you are a member of the Administrators group and the Debugger Users group on the computer.

Tumbleweed
A: 

I had this problem when I brought my code over from another machine. I kept getting that message when trying to debug until I completely cleaned out the output directory (I just manually deleted everything in it). Once I did that, I could run in debug mode.

Mike Pateras