The logon operation fails when you use Terminal Services to log on to a DCOM server from a Windows-based server
SYMPTOMSYou 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:
CAUSE This problem occurs because DCOM cannot create a COM component by calling the CoCreateInstance function during the logon event. When you log on to the computer, the Winlogon.exe process loads the client DLL. The Winlogon.exe process, in turn, calls the ATL server. DCOM calls the CoCreateInstance function after the connection is made to the server and before the Graphical Identification and Authentication (GINA) user interface appears. This behavior creates a nonzero session. DCOM cannot start a COM server in a nonzero session until Terminal Services has finished initializing and processing the user logon event. Terminal Services also uses a Winlogon notification DLL. The client registers for the session startup event. This behavior occurs before Terminal Services receives the logon event. Even if the client has also started by using the logon event, the Winlogon.exe process does not guarantee the order in which notification DLLs are loaded. Therefore, this process does not work reliably. WORKAROUNDTo work around this problem, use one of the following methods:
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. REFERENCESFor more information about the WtsWaitSystemEvent function, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/aa383856.aspx (http://msdn2.microsoft.com/en-us/library/aa383856.aspx) APPLIES TO
| Article Translations
|

Back to the top
