Solved

Unable to creat MAPI Profile using MFCMAPI on Exchange 2013

Posted on 2015-01-16
3
728 Views
1 Endorsement
Last Modified: 2015-02-17
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
1
Comment
Question by:Declaro
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
Exchange_Geek earned 500 total points
ID: 40553114
So, let us start with basics.

Does AdminUser have a mailbox assigned? If not, could it be provided and MFCMapi be tested again?
Are you able to open mailbox using Outlook of this said-user: AdminUser?
If the answer to the above question is YES, then are you able to open another account with AdminUser credentials?

Exchange_Geek
(Tushar Shah)
0
 
LVL 1

Author Comment

by:Declaro
ID: 40553185
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.
0
 
LVL 1

Author Comment

by:Declaro
ID: 40553206
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now