I've started getting this message recently when trying to open a store in online mode.
Code: MAPI_E_FAILONEPROVIDER == 0x8004011D
Function CallOpenMsgStore( lpMAPISession, (ULONG_PTR)m_hWnd, lpEntryID, ulFlags, (LPMDB*)lppMAPIProp)
File MainDlg.cpp
Line 435
Comments: ** Comment from web user: Myaushka **
Code: MAPI_E_FAILONEPROVIDER == 0x8004011D
Function CallOpenMsgStore( lpMAPISession, (ULONG_PTR)m_hWnd, lpEntryID, ulFlags, (LPMDB*)lppMAPIProp)
File MainDlg.cpp
Line 435
Comments: ** Comment from web user: Myaushka **
Just to update this: I didn't have a default profile selected. Once it was selected, then two-factor authentication prompts stopped popping up every time I opened Outlook, AND MFCMapi started working again.