Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I perform VS 2010 cross domain remote debugging?

Can someone please point me to some "for dummies" step-by-step guide for remote debugging using Visual Studio 2010?

I need remote debug a web service. My computer and the server are in different domains.

I've been reading this in MSDN for two days and still have no clue.

Best regards, Primoz


I get this error:

Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named 'remote.host'. The Visual Studio Remote Debugger on the target computer cannot connect back to this computer. A firewall may be preventing communication via DCOM to the local computer. Please see Help for assistance.

I'm using win 7 and on remote server is win 2008 r2. I turned off firewall on both ends.

like image 822
Primoz Avatar asked Nov 18 '10 14:11

Primoz


2 Answers

I found out that Remote debugging on a server that's in a different domain requires you to add your domain account to the administrators group and to the Permissions section of the remote debugger.

like image 159
CD.. Avatar answered Sep 25 '22 17:09

CD..


Check if your win7 machine is not behind another firewall, such as ones found in home routers and corporate networks. You might need to add rules to these firewalls to allow the connection to go through. You might also need additional configuration if your home router uses NAT (the server sees the router's IP and sends the packets there, the router needs to be configured about where it should forward these packets).

If all else fails try traceroute from the server to your development machine, this might give you a clue as to what's stopping the packets from flowing in. (I am assuming a network problem, not a login issue).

like image 24
Roman Avatar answered Sep 21 '22 17:09

Roman