I have encountered the Bad Request Error 400 in WCF client and i have analyzed this issue and found that main cause of this error is the BIG SIZE of request and it exceeded the default wcf request max limit .
>
To resolve this issue , you have to make following changes in WCF config file (in both config file client and server ) and increase MaxBufferPoolSize, MaxReceivedMessageSize to allow huge contents
<basicHttpBinding>
</basicHttpBinding>
> Thanks for visiting !!
>
To resolve this issue , you have to make following changes in WCF config file (in both config file client and server ) and increase MaxBufferPoolSize, MaxReceivedMessageSize to allow huge contents
<basicHttpBinding>
<binding maxBufferSize="64000000" maxReceivedMessageSize="64000000" maxBufferPoolSize="64000000">
<readerQuotas maxDepth="64000000" maxStringContentLength="64000000" maxArrayLength="64000000" maxBytesPerRead="64000000" />
<security mode="None"/>
</binding>
</basicHttpBinding>
Note : we can increase the maximum request size to 50MB for ASP.NET Runtime (IIS)
> Thanks for visiting !!
No comments:
Post a Comment