CRM 2011 Online - Xrm.Client connection fails: the remote name could not be resolved RRS feed

  • Question

  • One of our customers has a simple contact form on their website that sends the information to a CRM 2011 Online environment. However, sometimes the customer calls us that the form has stopped working, the log files then show the following message:

    System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at https://x.crm4.dynamics.com/XRMServices/2011/Organization.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: The remote name could not be resolved: 'x.crm4.dynamics.com'

    The web.config has the following configuration

    <microsoft.xrm.client> <contexts> <add name="Xrm" type="Xrm.XrmServiceContext, ContactForm" /> </contexts> </microsoft.xrm.client>

    Restarting the application pool solves this problem. The problem is reported once every week/two weeks.

    It seems that every now and than the connection fails for some reason and it can't restore itself after that. I'm using the Xrm.Client model to connect with CRM.

     private Xrm.XrmServiceContext crm = new Xrm.XrmServiceContext("Xrm");

    The Xrm.XrmServiceContext is generated by the CrmSvcUtil.

    Is there anything wrong with this setup? This approach works without any errors for all our other customers, but so far this is the only situation where we connect with CRM Online.

    • Edited by Hanno Z Tuesday, December 11, 2012 7:53 AM
    Tuesday, December 11, 2012 7:47 AM