Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CrmEntityReference Serialization Issue

$
0
0

Hi

We've just implemented XRM on our on-premise CRM 4 (rollup 21) development instance and are currently working through our plugins converting our code. Everything is working fine except for not be able to pass an instance of a CrmEntityReference object. We're using the latest edition of the SDK.

The exception messages are as follows:

The following is inner exception info:Source=System.Xml. Message=The type Microsoft.Xrm.Client.CrmEntityReference was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.

Type 'Microsoft.Xrm.Client.CrmEntityReference' with data contract name 'CrmEntityReference:http://schemas.datacontract.org/2004/07/Microsoft.Xrm.Client' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.

Has anyone seen this issue before or have any pointers as to how to resolve this?

Any information you can supply would be greatly appreciated.

Kind regards,

Lee


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>