Wednesday, February 3, 2010

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond


A few day ago, my colleague got above error message when he clicked on extension (aspx) pages in CRM application. Though he tried to browse extension pages from Development server, the IP address shown in error message was always point to LIVE server one. I checked database server setting in Deployment Manager and Windows Registry. All configuration settings were correct.

Below is the detail error message:
Exception information:
    Exception type: SocketException
    Exception message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.1.21:5555  

Thread information:
    Thread ID: 7
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

Resolution:
After searching through google for a while, I found a good solution. I checked Deployment Properties table in CRM and found that ADSdkRootDomain and ADWebApplicationRootDomain values were pointed to LIVE server URL. Updating those values with Development Server URL solved the above issue. (Please refer to reference link for detail information.)

To check server URL:
USE [MSCRM_CONFIG]
SELECT ColumnName, NVarCharColumn FROM DeploymentProperties
WHERE ColumnName IN ('ADSdkRootDomain', 'ADWebApplicationRootDomain', 'AsyncSdkRootDomain')

To update server URL:
USE [MSCRM_CONFIG]
UPDATE DeploymentProperties
SET NVarCharColumn = '[servername]:[port]'
WHERE ColumnName IN ('ADSdkRootDomain', 'ADWebApplicationRootDomain', 'AsyncSdkRootDomain')
Reference:
CRM 4.0 Client wont connect

No comments:

Post a Comment