asp.netwcfargumentsmaxmaxstringcontentlength

WCF MaxStringContentLength


I've maxed out my maxStringContentLength when passing arguments from WCF to WCF.

No biggie, I'll just up the value. But I have a question before I do:

Is that default 8192 size in bits, bytes, characters, words or what?!?!

I've been here (http://msdn.microsoft.com/en-us/library/system.xml.xmldictionaryreaderquotas.maxstringcontentlength.aspx), but apparently it's a big secret and nobody's supposed to know.


Solution

  • It's in bytes. The default is 8K.

    Edited To Add
    Actually, the documentation in one place says character, so characters is probably the more correct answer. Bytes works though if you're dealing with the normal 255 ASCII characters, as one byte = one character.