A circular reference was detected while serializing an object of type 'XXX'

I ran into an issue earlier when trying to return an entity class through a web service for use in an AJAX page. After some quick research, I came across a post by Darren Neimke that referenced Rick Strahl's post about LINQ to SQL and Serialization. For me, performing the first work-around and setting the relationship to 'Friend' worked.

Thanks Rick and Darren!

Published Monday, June 9, 2008 4:43 PM by Jason N. Gaylord

Comments

No Comments