Error: A circular reference was detected while serializing an object of type 'System.Data.DataView'. - by rsglaser

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 535133 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 2/21/2010 6:22:52 AM
Access Restriction Public


In Visual Studio 2008 Express -
An AJAX call to an embedded web service function that attempts to return a small DataView object cannot be made when the web service function tries to return a DataView. You get the above circular reference error. It also happens if you try to return a DataTable.
Sign in to post a comment.
Posted by Microsoft on 2/23/2010 at 5:03 PM
This is a built-in limitation of the JSON serializer. The JSON serializer implicitly requires its serialization targets to not contain infinite object graphs. For example the JSON serializer cannot serialize an array containing an entry that is a reference back to itself. In the reported case the JSON serializer is encountering a property somewhere on the DataView that eventually causes the JSON serializer to attempt to serialize the DataView all over again.

Thank you for reporting this issue on Connect.
Posted by Microsoft on 2/22/2010 at 7:02 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(