20

My development workstation is running VS2012 Update 1. The OS is Windows 7 Professional Service Pack 1 x64. I have a laptop running Windows 8 onto which I've installed the VS2012 Remote Debugger. I've started msvsmon and it's quietly sitting in the system tray or what passes for it on Windows 8.

I have set up a breakpoint in VS2012 at a location where I need to do some debugging. In VS2012, I click on Debug | Attach to Process... I get the dialog showing the list of processes running on my machine. I change the machine name to the name of the Laptop.

I am having two different problems:

Problem 1:

With Windows Firewall running, VS2012 connects to the remote debugger server. I see the list of the processes running on the Laptop. I choose the one I want to debug and click Attach. I get "Unable to attach to process. The RPC server is not available."

What's going on here?

Problem 2:

I turn off Windows Firewall on my desktop. When I try to connect to the process running on the laptop, it connects and loads all of the symbols. So far so good. Once all of that is finished, I perform the action that would cause my breakpoint to be hit. The process on the remote machine freezes, but so does VS2012. I've sat here as long as 10 minutes waiting with no change. At that point, I kill msvsmon on the remote machine and my program goes away with it, but VS is still locked up.

Any ideas??

Zabed Akbar
  • 537
  • 1
  • 8
  • 20
Tony Vitabile
  • 8,298
  • 15
  • 67
  • 123
  • The issue that caused me to post this question has cleared up on its own. I've been remote debugging on a variety of machines with out any problems. I have no idea what the problem was. Maybe my machine or the remote machine needed to be restarted? Both have been several times in the interval between my post & now. Anyone have any ideas? – Tony Vitabile Aug 21 '13 at 17:08

1 Answers1

37

I have faced a similar issue in VS 2013 showing the message "Unable to attach to process. The RPC server is not available".

I have resolved this by un-checking the "Use Managed Compatibility Mode" option from Debug > Options and Settings > General Tab.

sfarbota
  • 2,619
  • 1
  • 22
  • 30
Zabed Akbar
  • 537
  • 1
  • 8
  • 20
  • Thank you for sharing that. I will have to try checking to see if that option is checked when I next have to remote debug. My development environment is totally different now, though. – Tony Vitabile Sep 25 '15 at 13:43
  • 1
    Emphasis on 'un' in un checking. – JGeerWM Sep 22 '16 at 19:46
  • 1
    my error I getting from vs2013 is "Unable to attach to process. No more data is available." and then I CHECKed the box for compatibility mode and then it works. – Justin Jul 06 '17 at 01:52
  • Many thanks! You saved my mixed `C++/C#` project remote debugging. – Stefano Piovesan Apr 12 '19 at 10:46