Unable to start debugging - Visual Studio 2012

≡放荡痞女 提交于 2019-11-29 06:28:49
Chaithanya

Problem solved. Installed Remote tools update from here and working fine. Thanks for responding. Closing the topic.

I had the same problem. I fixed it by changing properties/compile/target platform to x86 instead of Any CPU. It solved the problem in my case. Hope it helps.

This happened to me just now when I had a website set up in IIS for mydomain.com, and set my project's start up url (Local IIS) to mydomain.com, and then launched the project before remembering to add a record in the host files for the domain:

127.0.0.1 mydomain.com

This got me for a good hour before I remembered I never set the record. Adding the record fixed it right away.

Windows 7 x64, VS 2012

In my case, the Remote Debugging Monitor component was installed and the app was clearly configured to debug locally in settings. This was a WinForms app upgraded from VS 2008, .NET 3.5.

Turns out it was the Windows Firewall. By directly running:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Remote Debugger\x64\msvsmon.exe

A firewall dialog appeared where I could allow msvsmon.exe to run. After a VS 2012 re-start, debugging (locally) was fine!

Ensure you have Local Machine selected in this drop-down menu:

Windows 7 x64, VS 2012, VB.NET

I fixed it like this:-

  1. Create a shortcut on your desktop to "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Remote Debugger\x64\msvsmon.exe".

  2. Right-click shortcut and select "Properties" from the dropdown menu. Select the "Compatibity" tab, tick "Run this program as administrator" and click OK

  3. Create a shortcut on your desktop to "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe".

  4. Right-click shortcut and select "Properties" from the dropdown menu. Select the "Compatibity" tab, tick "Run this program as administrator" and click OK.

To start VS2012:-

  1. Double-click the msvsmon shortcut icon (that you created above, to launch msvsmon). Wait for the "Visual Studio Remote Debugging Monitor (Administrator)" window to display before continuing ...

  2. Double-click the "Visual Studio 2012 Professional" shortcut icon (that you created above, to launch VS2012)

  3. In VS2012, ensure standard toolbar is visible.

  4. In VS2012, ensure "Solution Platforms" dropdown (on standard toolbar) is visible and set to "x86".

and debug now works (for me anyway) ...

However after 15 minutes or so, debug may stop working and you may get the msvsmon error again. If that happens, simply close VS2012 and msvsmon and then start again (from "To start VS2012:-" above) ...

Myself and several other developers have been trying to look for a solution for this problem for about 3/4 hours as Visual Studio crashed then this error would occur (twice in 2 days). I then suddenly (after a lot of debugging and trying other suggestions and headbanging) I somehow realised that the file which was highlighted had changed and when I was trying to debug was not the MVC app project, once I changed it to my project's one it then worked.

Hope this helps and saves people from hours of pain!

I also got this error, I usually run sites under a named user (which is also a database user) and forgot to set the Application Pool. (parliament's answer also helped me)

For me this worked in VS2013: Save your work, close Visual Studio then reopen your project

I encountered this error as well.

The cause of mine was that I had accidentally emptied out the following property

Properties->Debugging->WorkingDirectory

Changing it to:

inherit from parent or project defaults

Solved the issue.

Jose A

If you are using Microsoft's Azure, try attaching manually the debugger:

I have outlined the steps in the following answer:

https://stackoverflow.com/a/35738995/1057052

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