C # Remote Debugging Application in VS2010

I am trying a remote C # debugging application (remote PC under WinXP (32 bit), VS running under Win7 (64 bit), I received an error message:

Error while trying to run project: Unable to start debugging. Logon failure: unknown user name or bad password. See help for more information.

Both machines have user accounts with the same username / password, and both machines are located in the same workgroup on the local network.

When I turned on login auditing in WinXP, I see a strange entry in the event log, common sense: login forbidden for user SYSTEMbut I start VS and remote debugging moniton with a different username.

Can someone explain to me how to beat this strange mistake?

Update: I tried to launch VS2010 as a remote user with the command: runas /user:pc_name\user_name path_to_vs_ide then execute the password. The IDE was launched successfully, but when I select "Attach to process ..." and wrote pc_namein the qualifier field, I got the same error as above: Logon failure: unknown user name or bad password.

So my question is still relevant. How to remotely debug C # applications?

Upd2: The problem is resolved after installing a new clean copy of WinXP.

+4
source share
3 answers

Suppose you have two computers: C1 and C2. You create the user Alex on both, and each copy of Alex has the same password. Same user, right?

. (UID).

C1 C2 "Alex" , , , Alex C2, Alex C1, , , , 2.

"C1\Alex": , \ .

+2

: http://msdn.microsoft.com/en-us/library/bt727f1t.aspx Gregg : http://blogs.msdn.com/b/greggm/archive/2008/05/15/visual-studio-remote-debugger-service-user-account-requirements.aspx

, , ( Visual Studio , ( ), debug msvsmon.exe)

- Windows - " ", Windows . - , , , Visual Studio . ( userpasswords2, "", " ", " " ).

(, ), , , Visual Studio , , , .

+1

Alex, you may need to change the "Local Security Policy" setting on a computer running Windows XP, here is more detailed information: http://msdn.microsoft.com/en-us/library/ek2256kk(v=vs.100).aspx

0
source

Source: https://habr.com/ru/post/1534465/


All Articles