Reza.Hoque
Reza.Hoque

Reputation: 2750

Unable to start debugging -visual studio 2012

I have a solution where i have 8/9 projects. everything was working good and suddenly, I started to get an error when I start to debug. and it says

Unable to start debugging.

If I close visual studio and run it again, it works in the first try. and after that it stops working.

In the configuration manager it is set to "Any CPU".

I tried many thing with no luck. Is there any help??

this is how the error looks like..

enter image description here

Upvotes: 2

Views: 4036

Answers (2)

eduard
eduard

Reputation: 419

I got similar error: "Unable to start debugging. Check your debugger settings by opening project properties and navigation to 'Configuration properties --> Debugging"

I have solved it by setting : Properties--> Debugging --> Working Directory to $(ProjectDir)

Upvotes: 6

Joe
Joe

Reputation: 1214

As it's an MVC web application, there's a couple of things to check. Firstly, are you sure the web project is set as your startup (this catches me and a couple of others in my office out from time to time)?

Secondly, where are you hosting the project? Are you using Cassini, or are you hosting it in IIS while you debug? If so, check IIS and make sure that the site is started, there's no issues with the AppPool, etc.

Finally, one way to try is to actually press Ctrl+F5 to run without the debugger attached, I often find that IE will then actually display an error that's causing the issue.

Upvotes: 0

Related Questions