Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

This article was previously published under Q183093

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Status

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

↑ Back to the top


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

↑ Back to the top


References

For information on where to acquire the latest version of CDO (1.x) please see the following article in the Microsoft Knowledge Base:
171440� Where to Acquire the CDO (1.x) Libraries

↑ Back to the top


Keywords: kbbug, kbcdo121fix, kbfix, kbmsg, KB183093

↑ Back to the top

Article Info
Article ID : 183093
Revision : 4
Created on : 5/10/2005
Published on : 5/10/2005
Exists online : False
Views : 522