Share via


FYI: CDO 1.21 Anonymous logon changes in Exchange 2000/2003

...Don't know if many people try to use this anymore but it is worth noting...

SYMPTOM

Receive MAPI_E_FAILONEPROVIDER when attempting to log on anonymously to Exchange 200x using CDO 1.21.

...OR...

After anonymous log on to Exchange 200x using CDO 1.21, session object's AddressLists collection is empty.

CAUSE

In Exchange 200x there are several changes that affect using the anonymous log on method to gain access to Exchange:

  • The client (Outlook) version of CDO 1.21 cannot no longer log on anonymously to Exchange 200x
  • The server (Exchange) version of CDO 1.21 can log on anonymously but has no access to the Global Address List (GAL) or information stores by default
  • The distinguished name should be formatted in the following manner to log on anonymously to Exchange 200x

"/cn=com/cn=domainname/cn=servername"

 

RESOLUTION

Change your code to use a temporary (dynamic) profile as illustrated in the following article.

195662 How to log on to Exchange with the ProfileInfo parameter

https://support.microsoft.com/default.aspx?scid=kb;EN-US;195662

ADDITIONAL INFO

When using temporary profiles in an ASP application the account which the ASP code is running in must have access to the Exchange account used in the profile.

Refer to the following article for information on using temporary profiles in an ASP application.

254567 PRB: CDO:"MAPI_E_NOT_FOUND" Error When You Call Session.Logon

https://support.microsoft.com/default.aspx?scid=kb;EN-US;254567