Skip to content

Instantly share code, notes, and snippets.

@jjaramillo
Created November 29, 2011 05:28
Show Gist options
  • Save jjaramillo/1403566 to your computer and use it in GitHub Desktop.
Save jjaramillo/1403566 to your computer and use it in GitHub Desktop.
SVC Log output for the serialization exception
The type 'DondeCompro.Data.Afiliado' 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.
System.Runtime.Serialization.Json.DataContractJsonSerializer.get_RootContract()
System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph)
System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)
System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(XmlDictionaryWriter writer, Object graph)
System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.SerializeBody(XmlDictionaryWriter writer, MessageVersion version, String action, MessageDescription messageDescription, Object returnValue, Object[] parameters, Boolean isRequest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment