Error: Attaching to a Process in a Different Terminal Server Session is not Supported on this System
When trying to remote debug using TCP/IP, you may get the following error message:
Attaching to a process in a different terminal server session is not supported on this system. Try remote debugging to the machine using TCP/IP ports with msvcmon running in that session.
This error message can occur if you are using the default (DCOM) transport and trying to attach to a native C++ application through a remote Terminal Server session running under another user account. Remote debugging under DCOM launches the Remote Debug Monitor (msvcmon.exe) automatically for native applications.
Run Remote Debug Monitor on the remote machine using the
msvcmon tcpip -anyuser
–anyuseroption allows anyone who has network access to connect to the machine for remote debugging, which could pose a serious security risk.
For more information, see Setting Up Remote Debugging.