共用方式為


Error: The Microsoft Visual Studio Remote Debugging Monitor on the remote computer is running as a different user

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

When trying to do remote debugging, you may get the following error message:

The Microsoft Visual Studio Remote Debugging Monitor on the remote computer is running as a different user.

Cause

This message occurs when you are debugging in No Authentication mode and the user who started msvsmon is not the user who is running Visual Studio.

Solution

The safest and best solution is to run the Remote Debugging Monitor (msvsmon.exe) under the same user account as Visual Studio. If you cannot do that, you can run Remote Debugging Monitor under the other account with the Allow any user to debug option selected in the Remote Debugging Monitor Options dialog box.

Caution

Granting other users permission to connect allows the possibility of accidentally connecting to the wrong remote debugging session. Debugging in No Authentication mode is never secure and should be used with caution.

See also