This project has moved and is read-only. For the latest updates, please go here.

Self Referencing Loop - Better Exception Message

Nov 29, 2010 at 9:11 PM

I'm using Json.Net together with RavenDB and converting a quite messy entity model into a cleaner document model. During that conversation I very often stumble into the problem of "Self Referencing Loop" and the total lack of information WHERE the loop occurs drives me crazy. I suggest to add an indication which member causes the loop in the exception message if this is possible. This would allow for a much faster resolution of these problems.

-- Benedikt

Dec 1, 2010 at 8:10 AM

Including the property name is a little difficult because often the child type will be in a collection and there is no information about the collection property name. I've added the type causing the circular reference to the exception message.