Remote Debugging is not something that typically comes into play when working on standalone applications. Well, maybe that's not entirely true. My first exposure to remote debugging actually came about during some driver development I did back in the day - debugging a BSODing driver is best from a remote machine (and nowadays from a VM host..)
However, in the ever expanding world of distributed systems development, remote debugging can be key when the application being debugged is just a single node in a distributed system.
When it works, remote debugging is amazing. Well, actually it's exactly the same as debugging a local application, but given that the application is actually running on a remote machine, which does not need to even have Visual Studio installed, it's pretty cool.
However, there are numerous gotchas to getting remote debugging to work, and by talking about the blogtitle error message, I am starting somewhere in the middle. The exact message is:
Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named '….'. The Microsoft Visual Studio Remote Debugging Monitor on the remote computer cannot connect to the local computer. Unable to initiate DCOM communication. Please see Help for assistance.

'...' would be replaces by the IP address or machine name you are trying to debug.
So, at this point I am assuming that:
- Visual Studio remote debugged is actually in stalled on the remote machine
- Firewall is configured correctly - disabled is the best way to go for debugging remote debugging
- You have set up an account on the remote computer with the same user name and password as the account you are debugging from, and have given it proper (admin) privileges.
During a Remote Debug session, the remote computer instantiates a connection back to the computer that is debugging it. Thus, you need to have proper permissions for this "callback".
To enable anonymous DCOM access:
Cross fingers, and try your Remote Debug session again.
Hope this helps, let me know if you find any other gotchas.
Cheers!
The DCOM access for anonymous is enabled by default.However, still getting this error. Can you please give more idea to fix this problem?
Thanks for sharing this. It is valuable information.
Please make sure that your development box has the matching account for user and credentials that is running the remote machine you are trying to debug, and similarly, the machine being debugged should have your dev box's user name and credentials configured.
During the debug session, your dev box will make a connection to the remote system, AND the remote system will make a separate connection back.
So first, check to make sure that you can get back and forth between the machines (i.e. network share). Then make sure there is nothing in between that may be blocking the remote debug ports.
Hope this helps.
is there a how to for this?