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 3976434
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:48:14+00:00 2026-05-20T04:48:14+00:00

Okay so I’ve set up and tested a nice little WCF service. The client

  • 0

Okay so I’ve set up and tested a nice little WCF service. The client creates a string and passes it into a method on the service and the service then saves it as a file. Works perfectly with small amounts of test data but when I try it with what it’s supposed to do – pass some serialized .net objects – it falls over, with the error

The formatter threw an exception while
trying to deserialize the message:
Error in deserializing body of request
message for operation maximum string
content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader

So I goggle this and find that the MaxStringContentLength property should be set on a “readerQuotas” tag within the tag of the config file, like this:

     <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />

So I change it. I change it on the App.config file of my client. I change it on the App.config file and the Web.config file of my server. I change it in the App.config file of my unit test project. And none of it works – I keep getting the same error.

Interesting, and frustratingly, when I fired up WcfClient.exe to have a look at my service, connected to it and has a look at the config file (Client.dll.config) I was gobsmacked to find that this auto-generated file contained none of my changes and has reset to:

  <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                    maxBytesPerRead="4096" maxNameTableCharCount="16384" />

I have no idea where it’s getting these values from – nowhere in my entire solution are these being set. So it must be using defaults, but I don’t understand why it’s using defaults when I’ve provided custom Config files at both server and client.

Can anyone help me untangle this?

  • 1 1 Answer
  • 1 View
  • 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-20T04:48:15+00:00Added an answer on May 20, 2026 at 4:48 am

    1) Is it possible that your endpoint isn’t properly referencing the custom binding? Could you post your binding and endpoint sections?

    2) WcfTestClient doesn’t use your service or client configs to set its own configuration. You’ll need to manually edit the Client.dll.config with SvcConfigEditor to set up the WcfTestClient client binding data before executing the service.

    You can persist your WcfTestClient configuration changes if you look at the Tools -> Options menu. For more information on WcfTestClient, check this out: http://msdn.microsoft.com/en-us/library/bb552364.aspx

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

Sidebar

Related Questions

Okay i need to turn a string to a float do some math then
Okay - I have a dilemma. So far my script converts page titles into
Okay, I'm a little fuzzy on how this works or if it's possible. I
Okay, I've set up a bit of code which searching for all the pages
Okay say your using a app, and you opened a new activity and then
Okay, so I'm doing my first foray into using the ADO.NET Entity Framework. My
Okay, my code is currently: public MySqlDataReader CreateQuery(string queryString, string connectionString ) { using
Okay, next PHPExcel question. I have an HTML form that users fill out and
Okay this question is very simple: I have a facebook page, and a website.
Okay, I feel a bit foolish for having to ask this but I guess

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.