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->ConfigureM sgService( lpuidService, NULL, 0, cPropVals, lpPropVals)
File MAPIProfileFunctions.cpp
Line 664
2nd Error...
Code: MAPI_E_NETWORK_ERROR == 0x80040115
Function HrAddServiceToProfile("MSE MS",ulUIPa ram,NULL,N UMEXCHANGE PROPS,Prop Val,lpszPr ofileName)
File MAPIProfileFunctions.cpp
Line 693
3rd Error...
Code: MAPI_E_NETWORK_ERROR == 0x80040115
Function HrAddExchangeToProfile( (ULONG_PTR) m_hWnd, szServer, szMailbox, lpListData->data.Contents. szProfileD isplayName )
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-Ma ilboxPermi ssion -user AdminUser-AccessRights FullAccess -InheritanceType All MailUser
WARNING: The appropriate access control entry is already present on the object
"CN=MailUser,OU=Users,OU=C ompany,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-AD Permission -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=C ompany,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-AD Permission -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=C ompany,DC= Domain,DC= co,DC=uk" for account "DOMAIN\AdminUser".
Identity User Deny Inherited
-------- ---- ---- ---------
domain.co.uk/DO... DOMAIN\AdminUser False False
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->ConfigureM
File MAPIProfileFunctions.cpp
Line 664
2nd Error...
Code: MAPI_E_NETWORK_ERROR == 0x80040115
Function HrAddServiceToProfile("MSE
File MAPIProfileFunctions.cpp
Line 693
3rd Error...
Code: MAPI_E_NETWORK_ERROR == 0x80040115
Function HrAddExchangeToProfile( (ULONG_PTR) m_hWnd, szServer, szMailbox, lpListData->data.Contents.
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-Ma
WARNING: The appropriate access control entry is already present on the object
"CN=MailUser,OU=Users,OU=C
Identity User AccessRights IsInherited Deny
-------- ---- ------------ ----------- ----
domain.co.uk/DO... DOMAIN\AdminUser {FullAccess} False False
[PS] C:\Windows\system32>Add-AD
"Send As"
WARNING: The appropriate access control entry is already present on the object
"CN=MailUser,OU=Users,OU=C
Identity User Deny Inherited
-------- ---- ---- ---------
domain.co.uk/DO... DOMAIN\AdminUser False False
[PS] C:\Windows\system32>Add-AD
"Receive-As"
WARNING: The appropriate access control entry is already present on the object
"CN=MailUser,OU=Users,OU=C
Identity User Deny Inherited
-------- ---- ---- ---------
domain.co.uk/DO... DOMAIN\AdminUser False False
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER
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->CreateMsgS
File MAPIProfileFunctions.cpp
Line 627
Code: MAPI_E_NOT_FOUND == 0x8004010F
Function lpServiceAdmin->ConfigureM
File MAPIProfileFunctions.cpp
Line 664
Code: MAPI_E_NOT_FOUND == 0x8004010F
Function HrAddServiceToProfile("MSE
File MAPIProfileFunctions.cpp
Line 693
Code: MAPI_E_NOT_FOUND == 0x8004010F
Function HrAddExchangeToProfile( (ULONG_PTR) m_hWnd, szServer, szMailbox, lpListData->data.Contents.
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.