4

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?

8
  • 1
    I think you'll need to supply more information on the project you're trying to debug and possibly even some code. Is is just this project that's affected or all projects? Commented Nov 22, 2009 at 21:51
  • 15
    I want a massage during debugging too! Commented Nov 22, 2009 at 21:52
  • 1
    @Thomas: damn, thats what I wanted to write too :-) Commented Nov 22, 2009 at 21:56
  • Well Marc's edit has clarified my one project/all projects question, but knowing what types of project (winforms, wpf, web) are affected would be a great help Commented Nov 22, 2009 at 22:26
  • I have the same problem, and it has nothing do do with the code. Its the program itself. I'm using Visual Studio Developer 2008. For me, it's web projects. F5 is not working. Commented Nov 22, 2009 at 22:39

6 Answers 6

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

This fixed it for me. I had built my app with VS 2010. Then switched back to VS 2008. Both slns build to the same output directory (probably not a great idea!) and trying to build VS 2008 after VS 2010 was causing this problem. A clean rebuild didn't help, I had to delete all my output directories then rebuild.
0

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

Comments

0

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.

Comments

0

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..

Comments

0

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

Comments

0

I received this error after our sys admins pushed new security settings. Added the ASP user to the Administrators group and that resolved it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.