Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wcf 从MS Dynamics CRM 2011在线非美国实例连接到web服务时出现问题_Wcf_Web Services_Dynamics Crm 2011_Dynamics Crm Online - Fatal编程技术网

Wcf 从MS Dynamics CRM 2011在线非美国实例连接到web服务时出现问题

Wcf 从MS Dynamics CRM 2011在线非美国实例连接到web服务时出现问题,wcf,web-services,dynamics-crm-2011,dynamics-crm-online,Wcf,Web Services,Dynamics Crm 2011,Dynamics Crm Online,从Dynamics CRM 2011 online连接到外部Web服务可以在美国实例中工作,但是在我的客户和我们公司所在的澳大利亚新加坡数据中心的实例中,完全相同的代码不起作用: BasicHttpBinding binding = new BasicHttpBinding(); EndpointAddress address = new EndpointAddress("http://my.domain.com/webservice"); DataService1 client = new D

从Dynamics CRM 2011 online连接到外部Web服务可以在美国实例中工作,但是在我的客户和我们公司所在的澳大利亚新加坡数据中心的实例中,完全相同的代码不起作用:

BasicHttpBinding binding = new BasicHttpBinding();
EndpointAddress address = new EndpointAddress("http://my.domain.com/webservice");
DataService1 client = new DataService1(binding, address);
client.RunMethod();
在非美国实例上,此代码返回以下错误:

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

是否有人能够从非美国的CRM2011 Online实例中执行类似操作?

这里的代码示例应该可以解决您的问题。

此问题在几个月前已更正,如本论坛帖子所述:


现在我自己已经成功地测试了这一点,并发现它是正确的。

链接到其他问题示例:问题不是访问CRM web服务,而是从CRM插件中访问外部web服务。这在沙箱模式下运行良好,前提是来自美国数据中心,而不是亚洲数据中心