Self Referencing Loop - Better Exception Message

Nov 29, 2010 at 8: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

Coordinator
Dec 1, 2010 at 7: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.