Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Hi, there is i guess a complete mess with Dynamics CRM Sdk and WCF Data Services.
Class Xrm generated by CrmSvcUtil.
We have this
class XrmServiceContext : Microsoft.Xrm.Client.CrmOrganizationServiceContext
but Microsoft.Xrm.Client in which CrmOrganizationServiceContext remains
has reference to
so when compiling I get
Error 56 The type 'System.Data.Services.IUpdatable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Services, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089'. ... Xrm\Xrm.cs 321467 23 Xrm
Error 55 The type 'System.Data.Services.IExpandProvider' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Services, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089'. ... Xrm\Xrm.cs 321467 23 Xrm
Error 57 The type 'System.Data.Services.DataService`1<T0>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Services, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089'. ...\Xrm\Xrm.cs 328709 23 Xrm
As you can imagine The Mess is complete!
Any one have a clear vision what I have to do ?
You simply need to add a reference to System.Data.Services in your project.
See the sample in the SDK for reference - msdn.microsoft.com/.../gg695790.aspx
as you can imagine things are not so obvious
Error 127 The type 'System.Data.Services.IgnorePropertiesAttribute' exists in both 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.Services.dll' and 'c:\Program Files\Microsoft.Data.Services.5.6.0\lib\net40\Microsoft.Data.Services.dll' Xrm\Xrm.cs
So you seem to have references to the same assembly in two different versions of the .net framework. I suggest you remove both references to System.Data.Services and select only the version from the Assemblies ->Framework tab of the Add Reference dialog..Never browse directly for framework assemblies.
Just set the reference to the "old" System.Data.Services.dll is the only available option.
Currently, when you add a WCF DataService from VS 2012, it add references to the newest Microsoft.Data.Services.dll (fetching via Nuget or you can get directly on www.microsoft.com/.../details.aspx)
This new version of WCF Data service is compatible with OData V3 specs.
Seems that current CRM SDK will not compile when using this new reference.
Anyway, using this approach, you you fall in a poor experience when getting data from large entities, as you don't have control about what is exactly queried by CRM SDK.
I would recommend, create you own model/controller classes, exposing your data via OData WebAPI, querying CRM only exactly what you need.
hi Dian, How did you end up resolving the issue?
Business Applications communities