First chance exception in <addr> in <myapp>: 0x000006BA: RPC server is unavailable
A โfirst-chance exceptionโ occurs when an exception is thrown before anyone catches it. Usually they are benign and can be ignored (because someone will catch him).
You can make the debugger break when an exception is thrown, regardless of whether it catches it later.
In Visual Studio, this is done by selecting Debug / Exceptions and setting the check in the "Thrown" column for the exceptions you are interested in. Then, when an exception is thrown, the debugger will be broken in the appropriate place.
Please note that you may find yourself in the middle of nowhere (i.e. when disassembling), so make sure you set your debugging symbols correctly.
Also note that some exceptions are not included in the default list, so you need to click the "Add ..." button in this dialog box.
This is most likely a mistake (see these topics: 1 and 2 ).
I get this when debugging a C # application that calls a COM object written in C ++ when the COM object calls WNetOpenEnum (which, by the way, is successful). My system is Windows 7 x64 SP1 and is fully patched, Visual Studio 2010. This happens regardless of whether VS starts as an elevated process or normally.
The debugger reports that you probably did not enable remote debuggimg.
Check if the remote procedure call service is enabled (MMD.exe process). This service is required using the remote debugging feature.
You may try to follow How to enable remote debugging