Hi All,
I have a problem to send a dataset with large amount records(app. 400 rows records) from client to server.I found a error "The remote server returned an unexpected response: (400) Bad Request"
please anyone send a needful help.
My server side code:
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
Client Side Code:
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
enabled="false" />
realm="" />
algorithmSuite="Default" />
bindingConfiguration="WSHttpBinding_IService1" contract="ServiceRefe_WCF.IService1"
name="WSHttpBinding_IService1">
Thanks & Regards
Ram Kumar
Loading
Ram kumarPosted Oct 26, 2012, 1:23 AM
It was the default server binding setting. You would need to add to server and client default setting.
binding name="" openTimeout="00:10:00" closeTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647">