Skip to main content

Notifications

Solved: The remote server returned an error: (413) Request Entity Too Large in WCF Service.

Nishant Rana Profile Picture Nishant Rana 27 Microsoft Employee

Hi,

Recently created a WCF Service to be used for file upload.

Was getting the below error for large file

Setting the binding in the following manner fixed the issue


<bindings>
<basicHttpBinding>
<binding maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647"
maxBufferPoolSize="2147483647">
<readerQuotas maxDepth="32"
maxArrayLength="2147483647"
maxStringContentLength="2147483647"/>
</binding>
</basicHttpBinding>
</bindings>


Hope it helps..


Filed under: WCF Tagged: WCF

This was originally posted here.

Comments

*This post is locked for comments