Wednesday, February 12, 2014

at Microsoft.Interop.Mapi.CRcwMsgServiceAdmin.CreateMsgServiceEx(String ServiceName, String DisplayName, IntPtr UIParam, IMsgServiceAdmin_CreateMsgService_Flags Flags) ms crm 2011 Outlook integration

while doing integration MS CRM 2011 with outlook at the time of configuration I got the below error message while configuring the profile.
test connection was fine, but after selecting the org and then click OK, the progress bar goes and the error throws while updating the user profile.

error message from log file


Logon admin service
17:27:31|  Error| Exception :     at Microsoft.Interop.Mapi.CRcwMsgServiceAdmin.CreateMsgServiceEx(String ServiceName, String DisplayName, IntPtr UIParam, IMsgServiceAdmin_CreateMsgService_Flags Flags)
   at Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.InstallCrmDatastore(Guid organizationId, Guid userId, String serverUrl, String organizationName, String displayName)
   at Microsoft.Crm.Application.Outlook.Config.OutlookConfigurator.Configure(IProgressEventHandler progressEventHandler)
   at Microsoft.Crm.Application.Outlook.Config.ConfigEngine.Configure(Object stateInfo)



 finding was
"There was a difference in the mapisvc.inf files in the machines, which needs to be updated."
So the content(***) of the file "mapisvc.inf" from "C:\Windows\System32\" needs to be copy to "C:\Program Files\Common Files\System\MSMAPI\1033\".

content(***)

[MSCRM AB]
Providers=MSCRM ABP
PR_DISPLAY_NAME=Microsoft Dynamics CRM Address Book
PR_SERVICE_DLL_NAME=CRMPRV.dll
PR_SERVICE_SUPPORT_FILES=CRMPRV.dll
PR_SERVICE_DELETE_FILES=CRMPRV.dll
PR_SERVICE_ENTRY_NAME=ServiceEntry
PR_RESOURCE_FLAGS=SERVICE_SINGLE_COPY | SERVICE_NO_PRIMARY_IDENTITY
[MSCRM ABP]
PR_RESOURCE_TYPE=MAPI_AB_PROVIDER
PR_PROVIDER_DLL_NAME=CRMPRV.dll
PR_PROVIDER_DISPLAY=Microsoft Dynamics CRM Address Book
PR_STORE_SUPPORT_MASK=STORE_CREATE_OK | STORE_RESTRICTION_OK
[CrmMS]
Providers=Crm_MS
PR_SERVICE_DLL_NAME=CRMMS.dll
PR_SERVICE_ENTRY_NAME=CrmServiceEntry
[Crm_MS]
PR_RESOURCE_TYPE=MAPI_STORE_PROVIDER
PR_RESOURCE_FLAGS=STATUS_NO_DEFAULT_STORE
PR_PROVIDER_DISPLAY=Microsoft Dynamics CRM Database
PR_MDB_PROVIDER=881BC3AD9497624cB1BC2D51A897E43E
PR_PROVIDER_DLL_NAME=CRMMS.dll

 
hope this will help.

other links : http://support.microsoft.com/kb/2538692
https://www.google.com.sg/#q=at+Microsoft.Interop.Mapi.CRcwMsgServiceAdmin.CreateMsgServiceEx(String+ServiceName%2C+String+DisplayName%2C+IntPtr+UIParam%2C+IMsgServiceAdmin_CreateMsgService_Flags+Flags)+ms+crm+2011

Regards,
yes.sudhanshu