Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF service error deserializing object
    primarykey
    data
    text
    <p>I have a WCF web service that is currently accepting a JSON object of strings where one of the key/value pairs contains a Base 64 encoded string of an image binary data.</p> <p>When the web service receive the request it throws the following error:</p> <blockquote> <p>The exception message is 'There was an error deserializing the object of type. The maximum string content length quota (8192) has been exceeded while reading XML data.</p> </blockquote> <p>I've followed some of the solutions other people have suggested and my Web.Config now has a custom binding:</p> <pre><code> &lt;bindings&gt; &lt;webHttpBinding&gt; &lt;binding name="LongWebHttpBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt; &lt;/binding&gt; &lt;/webHttpBinding&gt; &lt;/bindings&gt; </code></pre> <p>With an endpoint configured as follows:</p> <pre><code> &lt;services&gt; &lt;service name="GenericService"&gt; &lt;endpoint address="" behaviorConfiguration="jsonBehavior" binding="webHttpBinding" bindingConfiguration="LongWebHttpBinding" contract="IGenericService" /&gt; &lt;/service&gt; &lt;/services&gt; </code></pre> <p>According to all the other suggestions setting <code>bindingConfiguration</code> should resolve the error message I'm getting.</p> <p>Are there any further steps I can take to try and sort this out?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload