Can't Access External Web Services from CRM Online


  • Connecting to outside Web Services from a Dynamics CRM 2011 Online plugin works from a US instance, however the exact same code does not work from an instance in the Singapore (Data centre for Australia where my clients and our company are located):


    BasicHttpBinding binding = new BasicHttpBinding();
    EndpointAddress address = new EndpointAddress("");
    DataService1 client = new DataService1(binding, address);

    On a non-US instance this code returns the following error:

    Microsoft.Xrm.Sdk, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]:
    System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error.
    Reference number for administrators or support: #2BEE9520

    Are there any differences between the data centres for accessing external resources? DNS issues?

    Chris Johnstone, Senior Developer | KKL Pty Ltd |
    martes, 31 de mayo de 2011 5:31

Todas las respuestas

  • Hello,


    I think that the best suggestion is to open ticket with your current problem description. I think that Microsoft Support would help you with your issue.

    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    martes, 31 de mayo de 2011 5:37
  • Are you sure that the endpoint address is eg. "" and not eg. "**/webservice"

    because it may happen that the difference between the two datacenters is a firewall preventing outgoing calls through ports other than 80 (as happening with many host providers).

    Islam Eldemery
    • Propuesto como respuesta Islam Eldemery miércoles, 01 de junio de 2011 11:30
    martes, 31 de mayo de 2011 6:33
  • Yes, to be specific, the endpoint I have been testing is 

    I will test using a web service hosted on port 80 and report back the result.

    Thanks for the tip

    Chris Johnstone, Senior Developer | KKL Pty Ltd |
    martes, 31 de mayo de 2011 6:39