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



The information in this article applies to:

  • Collaboration Data Objects (CDO) 1.1
  • Collaboration Data Objects (CDO) 1.2
  • Collaboration Data Objects (CDO) 1.21
  • Microsoft Exchange Server 4.0

This article was previously published under Q195586

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.

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.

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.

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.

Modification Type:MinorLast Reviewed:3/4/2004
Keywords:kbMsg kbprb KB195586 kbAudDeveloper