deserialization on client sied in Domain Service
- by ankit
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 ?