MAPI OpenMsgStore always returns MAPI_E_FAILONEPROVIDER on Exchange/Office 365 from a service (session id 0)

Liviu Dumitrescu 71 Reputation points
2022-11-28T12:36:42.273+00:00

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!

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,127 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,489 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,350 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amit Singh 4,846 Reputation points
    2022-11-29T10:50:39.63+00:00