How to perform remote debugging between VS 2010 domains?

Can someone please call me "step by step" for "remote" debugging using Visual Studio 2010?

I need remote web service debugging. My computer and server are in different domains.

I read this on MSDN for two days and still don't know.

Regards, Primos


I get this error:

Unable to connect to Microsoft Visual Studio Remote Debugging Monitor named "remote.host". Studio Visual Remote Debugger on the target computer cannot connect to this computer. A firewall may be preventing communication through the DCOM local computer. See Help for help.

I use win 7, and 2008 r2 wins on the remote server. I disabled the firewall from both ends.

+4
source share
3 answers

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

+4
source

Make sure your win7 computer is not behind another firewall, such as home routers and corporate networks. You may need to add rules for these firewalls to allow the connection. You may also need additional configuration if your home router uses NAT (the server sees the IP address of the router and sends packets there, the router should be configured where it should forward these packets).

If all else fails, try traceroute from the server to your development machine, this may give you an idea of ​​how to stop the packet transfer. (I assume a network problem, not a login problem).

+1
source

To debug a domain, you also need to edit the file C:\Windows\System32\drivers\etc\hosts on the local computer.

Just add the email address of the remote computer as follows:

 172.172.172.172 SRV-TEST-ADRESS 

Where:

  • 172.172.172.172 - The IP address of your remote server.
  • SRV-TEST-ADRESS - server name from the remote debugger Visual Studio Monitor on a remote computer.

You can find out the IP address of your ipconfig server in cmd

Visual Studio Remote Debugger Monitor

If you need a more detailed explanation, check out.

0
source

All Articles