Microsoft KB Archive/183093

= FIX: CDO (1.x) Error MAPI_E_FAILONEPROVIDER Using Store Related Properties =

Article ID: 183093

Article Last Modified on 5/10/2005

-

APPLIES TO


 * Microsoft Exchange Server 5.0 Standard Edition
 * Microsoft Exchange Server 5.5 Standard Edition
 * Microsoft Collaboration Data Objects 1.21
 * Microsoft Collaboration Data Objects 1.1
 * Microsoft Collaboration Data Objects 1.2

-



This article was previously published under Q183093



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 (1.1, 1.2, 1.21) 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 service provider loaded by the Messaging Application Programming Interface (MAPI) session in order to communicate with the Exchange Server.



RESOLUTION
Here are two possible workarounds:


 * If possible, do not use the ProfileInfo parameter to Logon.

-or-
 * Make sure that the MAPI Spooler is not running at the time this is executed. The MAPI spooler is normally launched by the Outlook or Exchange Clients, and does not shut down immediately after the client is shut down.



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



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" + vbLf + "MyMailbox" Debug.Print objSession.OutOfOfficeText  '<=== Failure occurs here.

