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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:16:22+00:00 2026-05-11T07:16:22+00:00

My web method kept faulting and investigations eventually revealed the following: The formatter threw

  • 0

My web method kept faulting and investigations eventually revealed the following:

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

The array in question is a byte[] containing the firmware image mentioned in the method name. This is why it has so many elements. OK, marvellous, now I know what’s wrong, and if I were explicitly managing the XML it wouldn’t be a problem. But I’m not, it’s all implicit.

How does one set this in the config file for a web service?

  • 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. 2026-05-11T07:16:23+00:00Added an answer on May 11, 2026 at 7:16 am

    This can be set in the web.config file in the section:

    <system.serviceModel>     <bindings>       <basicHttpBinding>         <binding name='BasicHttpBinding' maxBufferSize='2147483647'                 maxReceivedMessageSize='2147483647'>           <readerQuotas maxDepth='32' maxStringContentLength='8388608'                 maxArrayLength='16384' maxBytesPerRead='4096'                 maxNameTableCharCount='16384' />         </binding>       </basicHttpBinding>     </bindings> </system.serviceModel> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web method that returns a String[][] and I'm trying to parse
ERROR: unknown web method DoIt Parameter name: methodName I'm trying to pass a date
If my web method throws an exception, what is the best practice for passing
I need help in the following design. I expose a web method that does
In my web method , I get an object of some third party C#
I have a web method like this as part of a web service public
I am developing web method for webservice in java. In this web method I
My C# web method uses JavaScriptSerializer to return a JSON object in string format
After the web method is called, a XML string is returned as the response.
I created a web method but when i go to the site and type

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.