DOCUMENT:Q268272 08-MAY-2002 [exchange] TITLE :CDO MAPI Session Logon Fails If No Thread Token PRODUCT :Microsoft Exchange PROD/VER::1.2,1.21,5.5 OPER/SYS: KEYWORDS:kbDSupport kbExchange550sp4Fix ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Exchange Server, version 5.5 - Microsoft Outlook 2000 - Collaboration Data Objects (CDO), versions 1.2, 1.21, used with: - the operating system: Microsoft Windows 2000 ------------------------------------------------------------------------------- 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 "interactive user" 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, please see the following article in the Microsoft Knowledge Base: Q191014 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: +-------------------------+ | File name | Version | +-------------------------+ | CDO.dll | 5.5.2652.75 | +-------------------------+ STATUS ====== Microsoft has confirmed this to be a problem in CDO version 1.21. This problem was first corrected in Exchange Server 5.5 Service Pack 4. Additional query words: ====================================================================== Keywords : kbDSupport kbExchange550sp4Fix Technology : kbOutlookSearch kbAudDeveloper kbCDOsearch kbExchangeSearch kbZNotKeyword2 kbOutlook2000Search kbZNotKeyword3 Version : :1.2,1.21,5.5 Issue type : kbbug Solution Type : kbfix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2002.