This documentation is archived and is not being maintained.

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.

Cause

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.

Solution

Run Remote Debug Monitor on the remote machine using the –anyuser option:

msvcmon tcpip -anyuser
Note   The –anyuser option 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.

See Also

Remote Debugging Errors and Troubleshooting | Remote Debugging Setup | Adding Debugger Users and Configuring DCOM

Show: