Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF: maxStringContentLength always set to 8192
    primarykey
    data
    text
    <p>I need to change the maxStringContentLength to a value larger than 8192 but have not been successful in doing it. My WCF service will generate an exception if the amount of data it receives is greater than 8192 bytes. I have exhausted my searches and nothing seems to help. I should point out that the exception comes from the server. Forget about the client because I am seeing the exception generated straight from WCF on the server. Here is my web.config settings:</p> <pre><code>&lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="DevServiceBehavior" &gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;services&gt; &lt;service name="DeveloperService" behaviorConfiguration="DevServiceBehavior" &gt; &lt;endpoint address="mtom" binding="basicHttpBinding" bindingConfiguration="Binding_DevService" contract="DeveloperService"&gt; &lt;identity&gt; &lt;dns value="localhost"/&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="Binding_DevService" messageEncoding="Mtom" openTimeout="00:02:00" sendTimeout="00:02:00" maxBufferPoolSize ="41943040" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"&gt; &lt;readerQuotas maxDepth="500" maxArrayLength="20000000" maxStringContentLength="20000000" /&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/&gt; &lt;/system.serviceModel&gt; </code></pre>
    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.
 

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