Home > WPF > There was an error deserializing the object of type WebService ResponseBody. 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. Line 1, position 49035.’. Please see InnerException for more details.

There was an error deserializing the object of type WebService ResponseBody. 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. Line 1, position 49035.’. Please see InnerException for more details.

You can resolve this error by adding these lines at client app.config or web.config

<readerQuotas maxDepth=”32″ maxStringContentLength=”83886088″
maxArrayLength=”163848″ maxBytesPerRead=”40969″
maxNameTableCharCount=”163849″ />

so the full setting as follows

<bindings>

<basicHttpBinding>

<binding name=”PATWebServiceSoap” >

<readerQuotas maxDepth=”32″ maxStringContentLength=”83886088″             maxArrayLength=”163848″ maxBytesPerRead=”40969″             maxNameTableCharCount=”163849″ />

</binding>

</basicHttpBinding>

</bindings>

Happy coding:)

Advertisements
Categories: WPF
  1. mark twain
    July 22, 2013 at 1:37 am

    thank you. this helped me.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: