I have tried to receive a large object with XML over WCF. It doesn't work if I set maxStringContentLength={Default value}
.
It only works when I increase maxStringContentLength
but it decreases the performance.
Is there any solution to this issue without increasing maxStringContentLength
?
The short answer is no (for buffered messages). If you need to receive large string data, you need to increase the reader quotas. You should set them appropriately according to the maximum amount of data you want to allow.