Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6048621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:29:02+00:00 2026-05-23T07:29:02+00:00

I have created a WCF WebHttp Service using the following article as a guideline..

  • 0

I have created a WCF WebHttp Service using the following article as a guideline..

http://blogs.msdn.com/b/endpoint/archive/2010/01/07/getting-started-with-wcf-webhttp-services-in-net-4.aspx

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:29:03+00:00Added an answer on May 23, 2026 at 7:29 am

    That article is valid for the WCF WebHttp services as well – you just need to get a reference to the ServiceHost for those services. In the example of that blog post, the service is being activated using the ASP.NET routes, and the WebServiceHostFactory, which is the component which creates the ServiceHost instance to be used by that service.

    So you’d have to create your own factory (possibly overriding WebServiceHostFactory), and on CreateServiceHost you’d call the base method to get the host, modify it according to Sowmy’s article, then return it.

    I’ve recently posted an article about service host factories at http://blogs.msdn.com/b/carlosfigueira/archive/2011/06/14/wcf-extensibility-servicehostfactory.aspx, where you can find more information about this component.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created WCF client/ server applications using calculator demo as mentioned in http://msdn.microsoft.com/en-us/library/ms734712.aspx
I have a Data Service created using WCF that internally uses nHibernate. This WCF
I have created an OData/WCF service using Visual Studio 2010 on Windows XP SP3
I have created a WCF Data Service and using it in a web application
I have created WCF service in project. Now using Jquery I am successfully able
I have a WCF rest service. I created it using 4.0 rest service application,
I have created a WCF service that is hosted using windows service. The windows
I have created a WCF Publish/Subscribe service using WSDualHTTPBinding. It allows a server application
I have created a WCF service for uploading images , which accepts System.IO.Stream as
We have created a WCF service hosted in a windows service that handles Authentication

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.