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

  • Home
  • SEARCH
  • 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 6594387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:48:16+00:00 2026-05-25T17:48:16+00:00

i have a WCF with several methods: GetAccount, UpdateAccount, DeleteAccont and ListAccount, the first

  • 0

i have a WCF with several methods: GetAccount, UpdateAccount, DeleteAccont and ListAccount, the first three work well, but ListAccount doesn’t.
I get an error:

Error

The ListAccount return a List of Account:

[DataContract]
public class Account
{
    private int id;
    private String name;
    private AccountType accountType;
    private Account upperAccount;
    private Dictionary<Business, double> porc;

    public Account()
    {
        porc = new Dictionary<Business, double>();
    }

    [DataMember]
    public int Id
    {
        get { return id; }
        set { id = value; }
    }

    [DataMember]
    public String Name
    {
        get { return name; }
        set { name = value; }
    }

    [DataMember]
    public AccountType AccountType
    {
        get { return accountType; }
        set { accountType = value; }
    }

    [DataMember]
    public Account UpperAccount
    {
        get { return upperAccount; }
        set { upperAccount = value; }
    }

    [DataMember]
    public Dictionary<Business, double> Porc
    {
        get { return porc; }
        set { porc = value; }
    }

    public override string ToString()
    {
        return name;
    }
}


[DataContract]
public enum AccountType : byte
{
    [EnumMember]
    [Description("Account Type One")]
    One = 0,

    [EnumMember]
    [Description("Account Type Two")]
    Two = 1,
}

[DataContract]
public enum Business : byte
{
    [EnumMember]
    [Description("Business One")]
    BusinessOne = 0,

    [EnumMember]
    [Description("Business Two")]
    BusinessTwo = 1,
}

One observation, the list contains 45 items.

Any help will be well received. Thanks

  • 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-25T17:48:17+00:00Added an answer on May 25, 2026 at 5:48 pm

    You’re likely hitting one of the quotas in WCF – the way to find out for sure is to enable tracing at the server, and look at the traces which will contain an exception telling why the server disconnected the client. Without this information there’s just a bunch of guesswork we can do: maybe you’re hitting the MaxItemsInObjectGraph quota (can increase using the <dataContractSerializer> endpoint or service behavior; maybe the graph has a cycle and you need to enable preserveObjectReferences to deal with it, etc. But only with the traces we’ll be able to know for sure.

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

Sidebar

Related Questions

I have a WCF web service that exposes several business methods. I also have
My program is a WCF service which publishes several methods and have multiple client.
I have a WCF service with several methods. I would like to log the
I have several WCF services and I want to execute methods in them at
I have several wcf services which are hosted using ServiceHost class. Now , I
I have several WCF services in an ASP.NET application. I want to prevent applications
I have created several WCF services. In order to avoid adding service references in
I have a WCF Service that maintains several connections to various databases. I am
I have a WCF service sitting in the cloud. And my application makes several
I have a windows service hosting several WCF services. In my windows service I

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.