When I hit F5 (debugging mode) nothing happens. Building works correctly, exe file I can launch properly, but can't start debug. Why?


Solution 1:

I had the same problem and all the tricks didnt do it until I unchecked the "Enable the Visual Studio hosting process" under the debug tab in the project properties

Solution 2:

Ugh! I was experiencing the exact same symptoms you were, and after trying all the suggestions, the only one that worked was your own: creating a new project and copying all the contents across.

Then I noticed that I couldn't manually delete my Bin directory, and I realised that MyApp.vshost.exe had been running in the background this whole time, preventing itself from being overwritten by Visual Studio 2012. Not sure how it still worked from VS2010 though :/

In summary, the solution that worked for me: Kill the process, try again.

In other words, have you tried turning it off and on again?

Solution 3:

Restart VS and try to debug. Some time it happens, even I also had the same problem.

Solution 4:

Sorry to bring up an old question but I had the same problem today, but the reason was actually because of the build order of the solution. If you go into the Solution Property Pages -> Common Properties -> Startup Project.
The ensuring Multiple startup projects is selected, move the web project to the top of the list.

In my web application solution I have 2 web projects and 5 code projects, one of my code projects was at the top, and as such debug would not start.

Hope others find this helpful