deserialization on client sied in Domain Service

Posted by ankit on Stack Overflow See other posts from Stack Overflow or by ankit
Published on 2010-06-16T12:56:28Z Indexed on 2010/06/16 13:02 UTC
Read the original article Hit count: 265

Filed under:
|
|

i have 2 classes. Person and Contact. Person class has property named "ContactNumber" which returns the Contact type, and this property is marked as "Datamember" for serialization. i have marked Contact type as "DAtaContract".

on client side i am able to get the values, but when i try to insert a value and then do submit, i get the below exception.

Failed to deserialize change-set. Failed to convert value of type 'Dictionary`2' to type 'Contact'

Stack Trace is:

at System.Web.Ria.DataServiceSubmitRequest.GetChangeSet(DomainService domainService) at System.Web.Ria.DataServiceSubmitRequest.Invoke(DomainService domainService) at System.Web.Ria.DataService.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

can anyone give me the solution ?

© Stack Overflow or respective owner

Related posts about domain

Related posts about deserialization