Search code examples
c#.netcrudhelperdynamics-crm-online

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. 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

If I run the sample code "QuickStart" which is also using the helpercode i get the same exception.

QuickStart Sample: 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

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)?

Thank you for helping!


Solution

  • I have solved this problem with recompiling the whole project with the .NET Framework 4.6.2.

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