Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Using CDO (1.x) to Exchange 4.x Server from NT Service


View products that this article applies to.

This article was previously published under Q195586

↑ Back to the top


Symptoms

When you run an application that makes use of Collaboration Data Objects (1.x) as a Service on Windows NT, various functions may yield an error although the same code functions without error outside of a Service.

↑ Back to the top


Cause

When you run CDO (1.1, 1.2, 1.21) from a Windows NT Service, the calls are in UNICODE. Exchange Server version 4.x does not support UNICODE.

↑ Back to the top


Resolution

Here are two resolutions:
  • Write the application to use Extended Messaging Application Programming Interface (MAPI) with non-UNICODE functions instead of CDO (1.1, 1.2, 1.21).

    -or-
  • Upgrade the Microsoft Exchange Server version 4.x to Microsoft Exchange Server version 5.0 or later.

↑ Back to the top


More information

Here are the results of running various versions of CDO (1.1, 1.2, 1.21) from a Service against Microsoft Exchange Server 4.x:
    CDO 1.0: Cannot run from a Windows NT Service in any manner.

    CDO 1.1: Can run from a Windows NT Service, but is unable to Resolve a
             Recipient's Name into an AddressEntry.

    CDO 1.2x: Calling the Logon method of the Session object results in a
              "MAPI_E_NO_SUPPORT" error.

↑ Back to the top


Keywords: KB195586, kbprb, kbmsg

↑ Back to the top

Article Info
Article ID : 195586
Revision : 4
Created on : 3/4/2004
Published on : 3/4/2004
Exists online : False
Views : 405