Microsoft KB Archive/268272

= CDO - MAPI Session Logon Fails with MAPI_E_LOGON_FAILED If No ThreadToken =

Article ID: 268272

Article Last Modified on 11/25/2003

-

APPLIES TO


 * Microsoft Exchange Server 5.5 Standard Edition
 * Microsoft Outlook 2000 Standard Edition
 * Microsoft Collaboration Data Objects 1.2, when used with:
 * Microsoft Windows 2000 Standard Edition
 * Microsoft Collaboration Data Objects 1.21, when used with:
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q268272



SYMPTOMS
On Windows 2000, when an ActiveX EXE using CDO 1.2x creates a MAPI Session object and then calls the Logon method, the Logon method can return MAPI_E_LOGON_FAILED when the ActiveX EXE's identity is configured (under DCOMCNFG) to run under a specific user. If the ActiveX EXE is configured to run under the &quot;interactive user&quot; then it works fine and the Logon succeeds. The exact same application runs properly on a Windows NT 4.0 server.



CAUSE
A MAPI Session Logon call from a thread needs the ThreadToken set.



RESOLUTION
To resolve this problem, obtain the latest service pack for Exchange Server 5.5. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

191014 XGEN: How to Obtain the latest Exchange Server 5.5 Service Pack

The English version of this fix should have the following file attributes or later:



STATUS
Microsoft has confirmed that this is a problem in CDO version 1.21. This problem was first corrected in Exchange Server 5.5 Service Pack 4.

Keywords: kbbug kbexchange550sp4fix kbfix kbqfe KB268272

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.