?
Solved

Unable to creat MAPI Profile using MFCMAPI on Exchange 2013

Posted on 2015-01-16
3
Medium Priority
?
1,088 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
Exchange_Geek earned 2000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

762 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