en ar ar ar ar ar ar ar ar ar en ar en ar ar ar en en en en en en en en en en en en en en en en en en en en en en en en en en en en en ar ur ar ar ar ar ar ar ar ar en ar ar ur ar ar ar ar ar ar ar ar en
This article provides a solution to an error that occurs when you configure Microsoft Dynamics CRM for Microsoft Office Outlook.
Applies to:   Microsoft Dynamics CRM Online, Microsoft Dynamics CRM 2016, Microsoft CRM client for Microsoft Office Outlook, Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM 2013
When attempting to configure Microsoft Dynamics CRM for Microsoft Office Outlook, you receive the following error:
"There is a problem communicating with the Microsoft Dynamics CRM server. The server might be unavailable. Try again later. If the problem persists, contact your system administrator.
Unable to cast object of type 'System.Int32' to type 'System.String'. at Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetAllCRMOrgsInOutlookProfile()..."
This error can occur if a prior configuration attempt partially created a CRM data file in Outlook.
Follow the steps below to remove the incomplete CRM data file in Outlook:
Open the Control Panel in Windows. If you can't locate Control Panel, select Start and search for Control Panel.
Use the Search textbox to search for mail.
Select the Data Files button.
If a row appears with the name of Microsoft Dynamics CRM Database, select it and then select Remove.
Select Yes when prompted to confirm.
Close the Data Files dialog.
Attempt to configure CRM for Outlook again.
If you still meet issues installing, enabling, or connecting CRM for Outlook with a CRM Online organization, run the Microsoft Support and Recovery Assistant.
The error found in the log file contains the following detail:
Error| Exception : Unable to cast object of type 'System.Int32' to type 'System.String'. at Microsoft.Crm.Application.Outlook.Config.OutlookCRMDatastoreInstaller.GetAllCRMOrgsInOutlookProfile()
at Microsoft.Crm.Application.Outlook.Config.ClientConfig.Start(String[] args, Boolean runInsideOutlook)