Check this article - To use Registry Editor to restrict certain MAPI clients.
MAPI OpenMsgStore always returns MAPI_E_FAILONEPROVIDER on Exchange/Office 365 from a service (session id 0)
Liviu Dumitrescu
71
Reputation points
Hello,
I have the following setup:
Windows Server 2022 Datacenter Azure Edition
Microsoft Office Professional Plus 2016
An Exchange Online/Office 365 mailbox connected in Outlook.
I'm using an Windows Service and MAPI to connect to exchange but i got an MAPI_E_FAILONPROVIDER (0x8004011d) on the following code:
m_lpSession->OpenMsgStore(0,
pPropStore[1].Value.bin.cb,
(LPENTRYID)pPropStore[1].Value.bin.lpb,
0,
MDB_WRITE | MDB_NO_DIALOG,
&m_lpMDB)
This does not happen on an Windows Server 2012 connected to the same mailbox and same Office Version.
Any suggestion what the issue might be or insight how to norrow down the problem? Any known solutions?
Thanks in advance!