Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net 6 dataverse client sdk error could not load type System.Runtime.Serialization.IDataContractSurrogate

Recently we have started a c# project using .Net 6.0. My team intended to use the Microsoft.PowerPlatform.Dataverse.Client sdk to connect to dynamics 365 crm for our development. However, when we hit the error as shown in image 1 below. May i know is it the SDK does not support .Net 6.0 yet?

error image

like image 939
Low Chen Thye Avatar asked Nov 23 '25 17:11

Low Chen Thye


2 Answers

I have found the answer. Do not install the Microsoft.CrmSdk.CoreAssemblies library. That will resolve the issue.

enter image description here

like image 108
Low Chen Thye Avatar answered Nov 26 '25 10:11

Low Chen Thye


Microsoft.PowerPlatform.Dataverse.Client sdk to connect to dynamics 365 crm

works with .net framework 4.6.2 or .net core 3.1

MS Docs

MS Github

like image 27
AnkUser Avatar answered Nov 26 '25 10:11

AnkUser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!