Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Unable to start debugging" - VS2010 ASP.NET MVC 2

I can launch debug session only once with VS2010 and ASP.NET MVC2. When I end the first session and try to launch another I can see...

"Unable to start debugging" - no other messages, I'm using Visual Studio Development Server instead of IIS, Windows 7 64-bit

I can add that few days ago I was working on Windows XP and everything was fine.

  • I've tried running as admin (I thought there are any privileges issues) - no result
  • checked http://msdn.microsoft.com/en-us/library/dwesw3ee%28VS.71%29.aspx#vxtbshttpservererrorsthingstocheck (this page refers to IIS settings and I'm not using IIS)
  • I'm not satisfied with manually attaching - VS2010 is expensive IDE, it HAS TO work in this situation

Does anyone have some conclusions?

like image 494
Simon Avatar asked Jul 23 '10 18:07

Simon


People also ask

How do I fix unable to start debugging on web server?

Restart your Application Pool. Check that your Web Application folder has the right permissions. Make sure that you give IIS_IUSRS, IUSR, or the specific user associated with the Application Pool read and execute rights for the Web Application folder. Fix the issue and restart your Application Pool.

How do I enable debugging in Visual Studio?

In Solution Explorer, select the C# or Visual Basic project node and select the Properties icon, or right-click the project node and select Properties. Enable native code debugging in the properties.


3 Answers

The problem auto-magically disappeared when:

  1. I've turned off Debug > Edit and Continue option
  2. Open vs2010 and run debug.
  3. Turn off debug, shut down all launched WebServers (I had few of them for different services)
  4. Close VS2010
  5. Open VS2010.

After that everything works.

like image 199
Simon Avatar answered Oct 31 '22 06:10

Simon


A simple restart of VS2010 sorted this for me

like image 27
lgados Avatar answered Oct 31 '22 08:10

lgados


I've had this problem twice now and it occurs when I change my password for my computer. I have to go into IIS and change the password on the application pool to match my new password.

like image 20
Colin Avatar answered Oct 31 '22 06:10

Colin