Home Dashboard Directory Help

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


 as Won't Fix Help for as Won't Fix

Sign in
to vote
Type: Bug
ID: 535133
Opened: 2/21/2010 6:22:52 AM
Access Restriction: Public
User(s) can reproduce this bug


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(http://support.microsoft.com)
Sign in to post a workaround.