Link to home
Start Free TrialLog in
Avatar of Declaro
Declaro

asked on

Unable to creat MAPI Profile using MFCMAPI on Exchange 2013

Hello

We Have Server 2012R2 with Exchange 2013 CU6 and we're using Macrium Server Plus as a backup solution. I have been unable to do a mailbox item restore and working with their support we have tracked it down to the exchange server being unable to create a MAPI Profile for the mailbox.

We installed MFCMAPI and cannot connect to an Exchange Mailbox even though the relevant permissions have been assigned, I will post the EMS commands at the end of this post for your reference.

MAPI CDO 1.2.1 Ver 6.5.8320.0 is installed at the moment and i've tried the latest version and various other versions and it has made no difference.

The MFCMAPI errors i'm getting when I try to connect to an Exchange Mailbox and need help with are...

1st Error...

Code: MAPI_E_NETWORK_ERROR == 0x80040115
Function lpServiceAdmin->ConfigureMsgService( lpuidService, NULL, 0, cPropVals, lpPropVals)
File MAPIProfileFunctions.cpp
Line 664

2nd Error...

Code: MAPI_E_NETWORK_ERROR == 0x80040115
Function HrAddServiceToProfile("MSEMS",ulUIParam,NULL,NUMEXCHANGEPROPS,PropVal,lpszProfileName)
File MAPIProfileFunctions.cpp
Line 693

3rd Error...

Code: MAPI_E_NETWORK_ERROR == 0x80040115
Function HrAddExchangeToProfile( (ULONG_PTR) m_hWnd, szServer, szMailbox, lpListData->data.Contents.szProfileDisplayName)
File ProfileListDlg.cpp
Line 252

Can anyone shed any light on this for me please.

Thank you for your time.


EMS Commands to give permission to the MailUser Mailbox for AdminUser...

[PS] C:\Windows\system32>Add-MailboxPermission -user AdminUser-AccessRights FullAccess -InheritanceType All MailUser
WARNING: The appropriate access control entry is already present on the object
"CN=MailUser,OU=Users,OU=Company,DC=Domain,DC=co,DC=uk" for account "DOMAIN\AdminUser".

Identity             User                 AccessRights                                                IsInherited Deny
--------             ----                 ------------                                                ----------- ----
domain.co.uk/DO... DOMAIN\AdminUser {FullAccess}                                                False       False


[PS] C:\Windows\system32>Add-ADPermission -Identity "MailUser" -User AdminUser -AccessRights ExtendedRight -ExtendedRights
 "Send As"
WARNING: The appropriate access control entry is already present on the object
"CN=MailUser,OU=Users,OU=Company,DC=Domain,DC=co,DC=uk" for account "DOMAIN\AdminUser".

Identity             User                 Deny  Inherited
--------             ----                 ----  ---------
domain.co.uk/DO... DOMAIN\AdminUser False False


[PS] C:\Windows\system32>Add-ADPermission -Identity "MailUser" -User AdminUser -AccessRights ExtendedRight -ExtendedRights
 "Receive-As"
WARNING: The appropriate access control entry is already present on the object
"CN=MailUser,OU=Users,OU=Company,DC=Domain,DC=co,DC=uk" for account "DOMAIN\AdminUser".

Identity             User                 Deny  Inherited
--------             ----                 ----  ---------
domain.co.uk/DO... DOMAIN\AdminUser False False
ASKER CERTIFIED SOLUTION
Avatar of Exchange_Geek
Exchange_Geek
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Declaro
Declaro

ASKER

Hi, Thanks for the reply.

AdminUser is our domain Admin and i've just created a profile on a network PC and opened up the mailbox in outlook 2013 with no problem.

I have also added the MailUser profile to AdminUsers's Outlook profile and been able to send a mail externally from that user.

When you say open another account with AdminUser Credentials do you mean ANOtherUser  in MFCMapi and the answer is NO

When i run the EMS Commands with a ANOtherUser i get the MFCMapi Errors...

Error: Could not add service to profile. Perhaps service is not in MAPISVC.INF?
Code: MAPI_E_NO_ACCESS == 0x80070005
Function lpServiceAdmin->CreateMsgService( (LPTSTR)lpszServiceName, (LPTSTR)lpszServiceName, ulUIParam, ulFlags)
File MAPIProfileFunctions.cpp
Line 627

Code: MAPI_E_NOT_FOUND == 0x8004010F
Function lpServiceAdmin->ConfigureMsgService( lpuidService, NULL, 0, cPropVals, lpPropVals)
File MAPIProfileFunctions.cpp
Line 664

Code: MAPI_E_NOT_FOUND == 0x8004010F
Function HrAddServiceToProfile("MSEMS",ulUIParam,NULL,NUMEXCHANGEPROPS,PropVal,lpszProfileName)
File MAPIProfileFunctions.cpp
Line 693

Code: MAPI_E_NOT_FOUND == 0x8004010F
Function HrAddExchangeToProfile( (ULONG_PTR) m_hWnd, szServer, szMailbox, lpListData->data.Contents.szProfileDisplayName)
File ProfileListDlg.cpp
Line 252

Also... When i create a test profile in MFCMAPI and try to add an Exchange mailbox i can't even add the AdminUsers account and i'm logged into the server with that account.
Avatar of Declaro

ASKER

I don't know if this helps...

In MFCMAPI if i just try to logon using domain admin credentials it will go through the process of creating a new profile but when it tries to logon i get the error...

Network problems are preventing connection to the Microsoft Exchange Server computer

Thanks