Microsoft KB Archive/252653

= PRB: CreateMsgService Fails with MAPI_E_NOT_FOUND Against Outlook 2000 =

Article ID: 252653

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.0
 * Microsoft Outlook 2000 Standard Edition

-



This article was previously published under Q252653



SYMPTOMS
Extended Messaging Application Programming Interface (MAPI) code that calls the IMsgServiceAdmin::CreateMsgService method may return the MAPI_E_NOT_FOUND error.



CAUSE
There are a number of possible reasons for this error:
 * 1) The provider that is being configured is not present on the computer.
 * 2) The provider is installed, but is not listed in the copy of Mapisvc.inf that is loaded by MAPI.
 * 3) Outlook is not the default MAPI client.
 * 4) Exchange or the Exchange Admin tool was installed after Outlook 2000 was installed.



RESOLUTION
The following workarounds correspond to the numbered items in the "Cause" section above:
 * 1) Make sure that the desired provider is installed on the computer.
 * 2) Make sure that the provider's entries are set in the appropriate copy of Mapisvc.inf. The Outlook 2000 implementation of MAPI reads Mapisvc.inf from the \Program Files\Common Files\System\Mapi\\ folder. Earlier versions of Outlook, as well as Exchange and the Exchange Client, read the version of Mapisvc.inf that is found in the \Windows\System or \Winnt\System32 folder.
 * 3) In this situation, MAPI-based programs are not using Outlook's implementation of MAPI, so although Outlook can configure the profile, your program cannot. To work around this, you can configure the MAPIStub library to direct calls from your MAPI program to Outlook's implementation of MAPI. See "MAPIStub" in the Microsoft Developer Network (MSDN) for more information.
 * 4) When Exchange or the Exchange Admin tool are installed over Outlook 2000, Outlook's MAPIStub library in the system folder is overwritten. Running FixMAPI restores Outlook's version of MAPI, but may destabilize Exchange.



MORE INFORMATION
There are a number of third-party tools that can watch which files are being accessed at any given time. These tools are helpful in tracking down MAPI_E_NOT_FOUND errors in MAPI calls that require disk access.

