Serializes a specified object to JavaScript Object Notation (JSON) data and writes the resulting JSON to a stream.
Public Sub WriteObject ( _ stream As Stream, _ graph As Object _ )
public void WriteObject( Stream stream, Object graph )
The type being serialized does not conform to data contract rules. For example, the DataContractAttribute attribute has not been applied to the type.
There is a problem with the instance being written.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.