ASP.Net - How to ncrease the message size quotas in the App.config or Web.config file Code Example

The code for How to ncrease the message size quotas in the App.config or Web.config file

<bindings>
    <basicHttpBinding>
        <binding name="basicHttp" allowCookies="true"
                 maxReceivedMessageSize="20000000" 
                 maxBufferSize="20000000"
                 maxBufferPoolSize="20000000">
            <readerQuotas maxDepth="32" 
                 maxArrayLength="200000000"
                 maxStringContentLength="200000000"/>
        </binding>
    </basicHttpBinding>
</bindings>

<!--
And use the binding name in your endpoint configuration e.g.
-->
...
bindingConfiguration="basicHttp"
...
Code by IncludeHelp, on February 28, 2023 08:10

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.