Click here to Skip to main content
14,733,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

We are facing WCF issues and getting exception "HTTP/1/1 400 Bad Request" when passing xml object content length more than 65708, but it is working fine with content length 65329. As per google we changed values in server web.config file and my current web.config is below.

<binding name="GDASHttp" closetimeout="00:10:00" opentimeout="00:10:00" receivetimeout="00:10:00" sendtimeout="00:10:00" bypassproxyonlocal="false" hostnamecomparisonmode="StrongWildcard" maxbuffersize="2147483647" maxbufferpoolsize="2147483647" maxreceivedmessagesize="2147483647" messageencoding="Mtom" textencoding="utf-8" transfermode="Streamed" usedefaultwebproxy="true">
<readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="2147483647">
<security mode="TransportCredentialOnly">
<transport clientcredentialtype="Windows">

Still the issue exists and I again changed the values in IIS Settings in applicatonHost.config but no luck after this.

<location path="Default Web Site/GDAS.FY15R2.3.1/Trusted" overridemode="Allow">
<handlers accesspolicy="Read, Execute">
<add ipaddress="" subnetmask="" allowed="true">

<requestlimits maxallowedcontentlength="40000000">

<serverruntime uploadreadaheadsize="2147483647">

Please help us its urgent production issue.

Thanks in advance.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900