You use Terminal Services to log on to a DCOM server from a Microsoft Windows-based server. However, the logon operation fails. Additionally, you receive the following error message:
0x80070002 (ERROR_FILE_NOT_FOUND)
This problem occurs when the following conditions are true:
- The host computer and the client computer are running Microsoft Windows Server 2003, Microsoft Windows XP, or Microsoft Windows 2000.
Note The host computer and the client computer are not necessarily running the same operating system. - The client dynamic link library (DLL) and the Active Template Library (ATL) are installed on the client computer.
- The ATL executable (.exe) file is set to run under the Launching User identity of the Component Object Model (COM).
- The Component Object Model (COM) client calls the CoCreateInstance function on an out-of-process COM executable file. This COM executable file is loaded by the WinLogon.exe process when you start the client computer and every time that you try to start a new Terminal Services session.
You do not experience this problem when you log on locally to the host computer. The result from a call to the
CoCreateInstance function is written to a log file that reports that the
CoCreateInstance function succeeded. Specifically,
HRESULT 0 (S_OK) is returned.