Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote Debugging in Visual Studio (VS2008), Windows Forms Application

I'm trying to Remote Debugging a Windows Forms Application (C#), but i'm always getting this error:

Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named 'XXX. The Visual Studio Remote Debugger on the target computer cannot connect back to this computer. Authentication failed. Please see Help for assistance.

I tried to config according to the MSDN guides but i was not able to make it work.

My setup:

  • Development Computer - XP (x86) that is connected to a domain.
  • Test Computer - Vista (x86) that is NOT connected to a domain.
  • I have network connection between the machines.
  • I created a local user in the Test computer (user1) with the name of my domain user that I run the Visual Studio (mydomain\user1). setup the same password.
  • On The Test Computer i'm running "msvsmon.exe" as application (not as services), i'm running it using "runas" command with the user that i have created. (user1):

    runas /u:user1 msvsmon.exe

Can Someone help me please?

Thanks.

like image 510
Baget Avatar asked Dec 28 '08 11:12

Baget


People also ask

How do I Debug a remote app in Visual Studio?

Select Configure remote debugging to configure the firewall and start the remote debugger. When configuration is complete, the Remote Debugger window appears. The remote debugger is now waiting for a connection. Use the server name and port number shown to set the remote connection configuration in Visual Studio.


1 Answers

The problem that I had is that I had 2 users:

mydomain\user1 mytestmachine\user1 

that is not correct (according to Gregg Miskely) i needed to define a local user in my development computer, for example:

mydevcomputer\debug mytestmachine\debug 

with the same password and run the VS2008 and the Debugging Monitor with this user:

like image 135
Baget Avatar answered Oct 01 '22 03:10

Baget