Search code examples
c#.netdynamics-crmmicrosoft-dynamicsdataverse

.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


Solution

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

    enter image description here