delegateas/XrmContext

Serialization Error in DG.XrmContext.ExtendedEntity on Statuscode

eugenevanstaden opened this issue · 1 comments

I'm getting the following in a plugin that creates a related record.

Type 'DG.XrmContext.ExtendedEntity`2[communicationsettingState,communicationsetting_statuscode]' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

I have similar code in another project working fine, the only difference is the version of XrmContext is 1.5.2 in this one that is throwing this error. Changed to 1.5.0 and still the same.

I've tested trying to create a different entity in a plugin and getting the same error as above.

Not an issue. I forgot to add [assembly: Microsoft.Xrm.Sdk.Client.ProxyTypesAssemblyAttribute()] to my AssemblyInfo.cs