My client has a custom .NET web service that connects to Dynamics CRM online, but lately the connection to CRM isn’t being made, and the web service is encountering a Null Object exception when trying to call a method on the CrmServiceClient object. Here is the current code to establish the connection to CRM:
public CrmServiceClient getServiceProxy()
{
string connectionString = GetServiceConfiguration();
CrmServiceClient conn = new CrmServiceClient(connectionString);
//return (IOrganizationService)conn.OrganizationWebProxyClient != null ?
// (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;
return conn;
}
The connection string is:
The CRM is on version :
1710 (9.2.22041.160) online
Any helpful hints on how to get the connection working again would be greatly appreciated.