[Dev tip] Cannot consume WCF service. (413) Request Entity Too Large


<bindings>
 <basicHttpBinding>
 <binding maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text">
 <readerQuotas maxDepth="2000000" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
 </binding>
 </basicHttpBinding>
</bindings>

Check IIS uploadreadaheadsize and set to 204800

cscript adsutil.vbs set w3svc/1/uploadreadaheadsize 204800

and increase max buffer size at send and receive port binding Properties . Restart the IIS and Host instance .

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s