Error deserializing a custom tuple in WCF
|September 8, 2014||Posted by forumadmin under TechQns||
Below error while deserializing result set(tuple) in WCF function.
There was an error while trying to deserialize paramenter XXX. Please see InnerException for more details.
‘System.Tuple’ cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. Alternatively, you can ensure that the type is public and has a parameterless constructor – all public members of the type will then be serialized, and no attributes will be required.
Below is the tuple definition.
Public Class XXX
Public Property aaa As New List(of Tuple(of bbb,ccc))
|Asked By – beginer||Read Answers|