繁体   English   中英

无法将CRM 2011的组织服务添加为VS项目的服务参考

[英]Unable to add CRM 2011's Organization service as Service Reference to VS project

尝试将Organization Service添加为Visual Studio中的Service Reference时,我在访问Organization Service时遇到问题。 但是,我可以在浏览器中访问该服务。 我尝试添加OrganizationData服务,但没有问题。

An Error occurred while attempting to find service at 'http://xxxxxxxx/xxxxx/XRMServices/2011/Organization.svc'.

在此处输入图片说明

错误详情

There was an error downloading 'http://xxxxxxxx/xxxxx/XRMServices/2011/Organization.svc/_vti_bin/ListData.svc/$metadata'.
The request failed with HTTP status 400: Bad Request.
Metadata contains a reference that cannot be resolved: 'http://xxxxxxxx/xxxxx/XRMServices/2011/Organization.svc'.
Metadata contains a reference that cannot be resolved: 'http://xxxxxxxx/xxxxx/XRMServices/2011/Organization.svc'.
If the service is defined in the current solution, try building the solution and adding the service reference again.

我会引用SDK程序集( Microsoft.Xrm.Sdk.dll, Microsoft.Crm.Sdk.Proxy.dll, Microsoft.Xrm.Client.dll ),而不是添加服务引用。 它们为您提供了非常干净的OrganizationService代理对象,并大大简化了CrmConnection类的身份验证。 是一个样本。

您可以在MSFT下载中心NuGet上找到它们,只需确保使用与您的CRM版本(包括UR)匹配的版本即可。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM