PRB: "Error 8002009 - MAPI_E_NOT_INITIALIZED 80040605" with CDO (1.x) (193451)
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
This article was previously published under Q193451 SYMPTOMS
Running a Collaboration Data Objects (1.1, 1.2, 1.21) application can produce the following error:
Error 8002009 - MAPI_E_NOT_INITALIZED 80040605
CAUSE
This error can be caused by having a CDO (1.1, 1.2, 1.21) action being performed on the
session object before the Session.Logon method is executed.
Any of the following methods can cause this error to occur:
- Session.InfoStores
- Session.OutOfOffice
- Session.OutOfOfficeText
- Session.CurrentUser
- Session.Name
RESOLUTION
The Logon method must be called before any other CDO (1.1, 1.2, 1.21) actions can be performed with the Session object prior to a successful logon. The only method that can be used before a successful logon is the SetLocaleIDs method of the Session object. In addition, you can access the Version property before a successful logon.
Modification Type: | Minor | Last Reviewed: | 3/4/2004 |
---|
Keywords: | kbFAQ kbMsg kbprb KB193451 |
---|
|