views:

541

answers:

3

I have two machines in two different domanins. On both I have VS 2005 installed. I want remote debug between them. Without autentication it is possible but I want to debug managed code. I don't want to debug directly since it is really crappy machine.

When I try to attach wiht debugger I get message "The trust relationship between this workstation and primary domain failed." Any idea how to overcome this ? I tried tricks with adding same local username on both machines but with no luck.

EDIT: I have same local users on both machines. I started both VS2005 and Debugging monitor with RunAs using local users. I turned Windows Auditing on debug machine and I see that local user from VS2005 machine is trying to logon. But he failes with error 0xC000018D (ERROR_TRUSTED_RELATIONSHIP_FAILURE)

+1  A: 

I seem to remember that I have sometimes found it useful to use RunAs when you run msvcmon (or whatever it's called this week - the remote debugging stub anyway), to force it to start as the user which you have set up to be the same on both machines.

I would guess that on the machine you're running VS on, you will also need to log in as the local user rather than a domain user (or start VS with RunAs).

I have never understood why this needed to be so hard, given that unmanaged debugging is so much easier, and must expose every security hole that managed debugging could.

Will Dean
+3  A: 

Gregg Miskely has a blog post on this. You might get it to work if both local accounts have the same user name and password. You might also try dropping your good box from it's domain so that you are going from a workgroup to a domain rather than domain to domain.

Steve Steiner
A: 

I'm having the same issue here, why do they make things so difficult, this should be just for debugging!

kof3