Hi, Im getting the error when I am sending the large message to WCF service, I've seen previous post regarding the same prob and tried all the possibilities but still facing the problem.
Changed the reader quotas values of Client config and service config but no help.
Also tried by adding the below code in client and service
BasicHttpBinding basicBinding = new BasicHttpBinding();
basicBinding.MaxBufferSize = Int32.MaxValue;
basicBinding.MaxReceivedMessageSize = Int32.MaxValue;
basicBinding.MaxBufferPoolSize = Int32.MaxValue;
XmlDictionaryReaderQuotas myReaderQuotas = new XmlDictionaryReaderQuotas();
myReaderQuotas.MaxStringContentLength = Int32.MaxValue;
myReaderQuotas.MaxArrayLength = Int32.MaxValue;
myReaderQuotas.MaxBytesPerRead = Int32.MaxValue;
myReaderQuotas.MaxDepth = Int32.MaxValue;
myReaderQuotas.MaxNameTableCharCount = Int32.MaxValue;
But still facing the issue.
Here is my
View Complete Post