FIX: MAPI_E_FAILONEPROVIDER Using Store Related Properties w/CDO

ID: Q183093


The information in this article applies to:


SYMPTOMS

The following error may occur when trying to programmatically access any InfoStore related properties or methods such as OutOfOfficeText, GetDefaultFolder(n), and so forth:


   MAPI_E_FAILONEPROVIDER. 


This error does not occur on AddressBook related properties and/or methods such as GetAddressList(x) or AddressLists, and so forth.


CAUSE

When using Collaboration Data Objects (CDO) with the ProfileInfo Logon parameter on Windows 95, access to the Store fails because the Emsmdb.dll file cannot handle a separate Remote Procedure Call (RPC) connection when running on Windows 95.

Emsmdb.dll is the file responsible for loading the various services used by the Messaging Application Programming Interface (MAPI) session.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior



The sample code below reproduces this failure, yielding the following error on a Windows 95 (SP1 and OSR2) system:


   MAPI_E_FAILONEPROVIDER. 

Sample Code


   Set objSession = CreateObject("Mapi.Session")
   objSession.Logon ProfileInfo:="MyServer" + vbCrLf  + "MyMailbox"
   Debug.Print objSession.OutOfOfficeText   '<=== Failure occurs here. 


REFERENCES

For information about Collaboration Data Objects versus Active Messaging, please see the following article in the Microsoft Knowledge Base:

Q176916 INFO: Active Messaging and Collaboration Data Objects (CDO)

The fix for this problem in CDO.DLL for Windows 95 is available at: http://www.microsoft.com/exchange/55/downloads/CDO.htm


WORKAROUND

Here are two possible workarounds:

Additional query words: ActMsg


Keywords          : kbCDO kbCDO110 kbCDO120 kbMsg 
Version           : WINDOWS:1.1,1.2; winnt:5.0,5.5
Platform          : WINDOWS winnt 
Issue type        : kbbug 

Last Reviewed: June 18, 1999