Solved

Unable to creat MAPI Profile using MFCMAPI on Exchange 2013

Posted on 2015-01-16
3
680 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

746 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

17 Experts available now in Live!

Get 1:1 Help Now