I have tried many ways to deserialize LINQO objects but every method failed. Here is an example of the last code.
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(SalesNetData.Country));
string xmlData = Session["CCC"].ToString();
byte[] byteArray = new byte[xmlData.Length];
byteArray = encoding.GetBytes(xmlData);
MemoryStream stream1 = new MemoryStream(byteArray);
SalesNetData.Country country = (SalesNetData.Country)ser.ReadObject(stream1);
Console.WriteLine("Deserialized Country data:");
But I get the following error now.
The type 'SalesNetData.Country' cannot be serialized to JSON because its IsReference setting is 'True'. The JSON format does not support references because there is no standardized format for representing references. To enable serialization, disable the IsReference setting on the type or an appropriate parent class of the type.
Please help.....