I have created a WCF WebHttp Service using the following article as a guideline..
I have everything working great except one part. When I query to get a list of Contacts from my database it returns them fine. However, when I use the same code structure to get a list of Accounts it tells me:
This webpage is not available
However, I can query a single Account no problem. At first I thought it might be a dependency thing where it's trying to load all the child objects on Account and so forth. But when I inspect the result coming back from the database it's a very small set of data. (42 records) So I thought it might have to do with serialization of the objects, so I did my own little Json serializer method to a file and got the following error.
Object graph for type 'MyNamespace.Model.Account' contains cycles and cannot be serialized if reference tracking is disabled.
So I did a search on the web and all the results are pointing to a singular article..
http://blogs.msdn.com/b/sowmy/archive/2006/03/26/561188.aspx
However, this article doesn't help me as it is not valid for WCF WebHttp services.
Any thoughts?