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.

<basichttpbinding>
<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">
<system.webserver>
<handlers accesspolicy="Read, Execute">
<security>
<ipsecurity>
<add ipaddress="127.0.0.1" subnetmask="255.255.255.255" allowed="true">

<requestfiltering>
<requestlimits maxallowedcontentlength="40000000">


<serverruntime uploadreadaheadsize="2147483647">



Please help us its urgent production issue.

Thanks in advance.

Regards,
Narasimha
Posted

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