Microsoft KB Archive/183093

From BetaArchive Wiki

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.

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.
                

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


Keywords: kbbug kbfix kbmsg kbcdo121fix KB183093