Groups | Blog | Home
all groups > visual studio .net debugging > may 2006 >

visual studio .net debugging : Problem with remote debugging in VS 2003


Roy Chastain
5/26/2006 1:32:39 PM
I am running on an XP SP2 system with full VS 2003 Enterprise installed.
I have a 2003 Enterprise R2 installed with the remote debugging (both native and managed) installed from the 2003 Enterprise CD.

Both machines are in the same domain.
The server is a member server for testing applications.
I am an administrator on both machines.
I have added my name to the Debug Account list in both the Local Policy on both machines and to the Default Domain Policy
I have done GPUpdate /force on both machines
I have restarted both machines

I receive the following error when I try to attach to a process on the 2003 server system
Unable to attach to the process. Attaching to processes in other users sessions is not allowed. Administrators can enable this
feature. Consult the help for more information.

There are no errors or warning in the event logs on either system.

Where do I go next?
-------------------------------------------
Roy Chastain
KMSYS Worldwide, Inc.
jetan NO[at]SPAM online.microsoft.com (
5/29/2006 12:00:00 AM
Hi Roy,

Thanks for your post!

Do you run the target process under the same account as the account you run
the XP SP2 debugger? There are some known security issues when you are
doing cross-accounts remote debugging, please refer to the 2 articles below:
"Remote Debugging Under Another User Account"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/htm
l/vxtskRemoteDebuggingAcrossMachineAccounts.asp
"Unable to Attach to the Process"
http://msdn2.microsoft.com/en-US/library/h1cddsb5.aspx

To resolve this problem, you may set
HKLM\Software\Microsoft\MachineDebugManager\AllowLaunchAsOtherUser to 1 and
give it a retry.

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Roy Chastain
6/2/2006 12:00:00 AM
Jeffery,
Sorry about the delay in response. I got buried with other stuff and forgot this issue.
Yes, I am logging in on both systems with the same domain level account and I am running the debugged application from a command
line.

I added the reg value you gave me below and rebooted. Now it works.

THANKS

[quoted text, click to view]
-------------------------------------------
Roy Chastain
KMSYS Worldwide, Inc.
jetan NO[at]SPAM online.microsoft.com (
6/5/2006 1:42:55 AM
You are welcome.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button