WebMethod does not work if a large string parameter is specified

Does anyone know if there is a problem with a json object if a long string object is passed.

I am calling a web method with its contents as encoded html data. The generated string is about 7000 and this is not passed to the web method from clients. Please, help.

+3
source share
1 answer

Sol 1: Another thing you can do is check out gzip-like compression that can reduce the size of your content.

sol 2: check this configuration property maxStringContentLength and maxBytesPerRead. Also, make sure that any binding configuration you have configured, you are actually using it in all the right places.

: http://social.msdn.microsoft.com/forums/en-US/wcf/thread/c2a770ed-a7ff-4c9e-a318-8b86b2f59a85

+1

All Articles