简体   繁体   English

Dynamics CRM SDK-与帮助程序代码连接

[英]Dynamics CRM sdk - Connecting with Helper code

I got a little problem: I want to use the Microsoft CRM sdk helper code to connect to my online crm and retrieve data to my c# console application. 我有一个小问题:我想使用Microsoft CRM sdk帮助程序代码连接到我的在线crm,并将数据检索到我的c#控制台应用程序。 But I am always getting the same exception: 但是我总是遇到同样的异常:

Metadata contains a reference that cannot be resolved: "https://organisation.api.crm4.dynamics.com/XRMServices/2011/Organization.svc?wsdl&sdkversion=80"

I basically want to program this: https://msdn.microsoft.com/en-us/library/gg328416.aspx 我基本上想对此编程: https : //msdn.microsoft.com/en-us/library/gg328416.aspx

If I run the sample code "QuickStart" which is also using the helpercode i get the same exception. 如果我运行的示例代码“ QuickStart”也使用了helpercode,则会出现相同的异常。

QuickStart Sample: https://msdn.microsoft.com/en-us/library/gg334689.aspx 快速入门示例: https : //msdn.microsoft.com/en-us/library/gg334689.aspx

I am using the .NET Framework 4.5.2 and I have set up my console application like the example in the msdn documentation: https://msdn.microsoft.com/en-us/library/dn481588.aspx 我正在使用.NET Framework 4.5.2,并且已像msdn文档中的示例一样设置了控制台应用程序: https : //msdn.microsoft.com/zh-cn/library/dn481588.aspx

Can anyone help me to fix this error, or can anyone help me to connect to CRM to retrieve data like in this CRUD example ( https://msdn.microsoft.com/en-us/library/gg328416.aspx )? 任何人都可以帮助我解决此错误,或者任何人都可以帮助我连接到CRM以检索此CRUD示例( https://msdn.microsoft.com/zh-cn/library/gg328416.aspx )中的数据吗?

Thank you for helping! 感谢您的帮助!

I have solved this problem with recompiling the whole project with the .NET Framework 4.6.2. 我已经通过使用.NET Framework 4.6.2重新编译整个项目解决了此问题。

https://support.microsoft.com/en-us/help/4051700 https://support.microsoft.com/en-us/help/4051700

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

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