This is a really crazy one, I know I'm grasping at straw here but while importing a org database into our production environment I'm getting the following error. Has anyone seen this before?
CrmException System.Net.Socket.SocketException No Such Host is Known at System.Net.DNS.InternalGetHostByName
When Dynamics CRM is setup with SQL Server 2012 High Availability a Listener is required to be used in the connection string. However when doing an Organization import from for example your Test server CRM will not allow you use a Listener if you attempt to use a Listener Dynamics CRM with throw the following error.
Because Microsoft does not provide a way within its UI to update the connection string back to the physical server name the only option seems to be to manually update the Organization table in the MSCRM_Config database directly, which of course is unsupported by Microsoft. This has been confirmed by Microsoft Support.
For anyone facing this issue here is Microsoft Supports final answer.
· Change the Data Source from the SQL Server instance name to the availability group listener name. The complete connection string should appear similar to the following example, where MSCRMAG is the availability group listener name for the availability group that includes the Microsoft Dynamics CRM configuration database: Data Source MSCRMAG;Initial Catalog= MSCRM_CONFIG;Integrated Security=SSPI
I have discussed this with our senior resources at Microsoft, and we can confirm that this is a workaround for now and the same is supported. The deployment will continue to stay supported until and unless there are no other changes made to the database, then the ones mentioned above.