Note that there are some explanatory texts on larger screens.

plurals
  1. POThe maximum message size quota for incoming messages (65536) has been exceeded from form submit
    primarykey
    data
    text
    <p>I've been researching this problem for a couple days now and most of the solutions mention altering MaxReceivedMessageSize binding setting in both the app.config file as well as the web.config file. However, my solution doesn't have an app.config file, so I'm not too sure exactly what I'm doing wrong here.</p> <p>My web client is being deployed from IIS 7. I'm trying to asynchronously submit a javascript form with xml data as a string to my WCF web service and subsequently trigger a file download on the client from there. This is working for smaller files, but fails on larger files as the binding seems to be falling through to a default. </p> <p>Using WCF tracer in my svclog I'm seeing "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element." coming from my service.</p> <p>Here is my web.config, which I know is not being applied to my request. So, my request never even leaves my javascript client.</p> <pre><code> &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;webHttpBinding&gt; &lt;binding name="customBindingNameForLargeMessages" maxReceivedMessageSize="2147483647" transferMode="Streamed"&gt; &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt; &lt;/binding&gt; &lt;/webHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address="http//localhost:32478/Services/MobileConsoleDownloadService.svc" binding="webHttpBinding" bindingConfiguration="customBindingNameForLargeMessages" contract="Foo.Bar.MobileConsole.Services.IMobileConsoleDownloadService" name="" /&gt; &lt;/client&gt; &lt;services&gt; &lt;service name="Foo.Bar.MobileConsole.Services.MobileConsoleDownloadService"&gt; &lt;endpoint address="http:localhost:32478/Services/MobileConsoleDownloadService.svc" binding="webHttpBinding" bindingConfiguration="customBindingNameForLargeMessages" name="" contract="Foo.Bar.MobileConsole.Services.IMobileConsoleDownloadService" /&gt; &lt;/service&gt; &lt;/services&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.
    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