| Previous | Next |
| ERROR_CTX_CDM_CONNECT | ERROR_CTX_SECURITY_LAYER_ERROR |
ERROR_CTX_CDM_DISCONNECT
The Client Drive Mapping Service Has Disconnected on Terminal Connection.
ERROR_CTX_CDM_DISCONNECT is Win32 error 7067 (0x00001B9B) in legacy Remote Desktop Services and Terminal Services session handling.
What to verify
Verify whether the drive-mapping channel is closed and dependent handles are invalidated cleanly. Check session transition and reason, open redirected-file handles, and client and network state.
Likely causes
- the RDP session disconnected.
- client drive redirection was disabled.
- the virtual channel failed or was reset.
- a user logged off or reconnected from another client.
Troubleshooting steps
- Collect session transition and reason.
- Record open redirected-file handles.
- Correlate client and network state with TerminalServices operational logs, session and user-configuration records, device or modem diagnostics, and the caller’s connection trace.
Handling, retry, and recovery
Treat the result as a notification, close or fail redirected I/O cleanly, and rebuild mappings only after a later connect event.
Related errors
ERROR_CTX_CDM_CONNECT announces establishment of the same virtual channel
Example
A process keeps a file open on a redirected drive when the user disconnects. Handling this event closes the stale handle and prevents later writes from targeting a vanished mapping.
References
Looking for a different code? Search another status or error code.