“Unable to start debugging” - VS2010 ASP.NET MVC 2

若如初见. 提交于 2019-12-08 14:38:33

问题


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?


回答1:


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.




回答2:


A simple restart of VS2010 sorted this for me




回答3:


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.




回答4:


Also encountered this issue when updated AnkhSVN(I don't believe that updating could cause this problem but I didn't do anything else except code editing).

Closing Development Servers seems solve this issue until next time.

Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel



来源:https://stackoverflow.com/questions/3321022/unable-to-start-debugging-vs2010-asp-net-mvc-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!