WCF XmlDictionaryReaderQuotas doesn't exist

c#, wcf

Solution

Solved.

Need to add manually the reference: `System.Runtime.Serialization` and then the class `XmlDictionaryReaderQuotas` will be showen in `System.Xml`

Problem

I want to set maxArrayLength in basichtttpbiding. But the only way to do this, with out configuration file, is to create a XmlDictionaryReaderQuotas, that doesnt not exsist in System.xml, and put it in BasicHttpBinding1.ReaderQuotas. What can I do to set the maxArrayLength with out using configuration file ? EDIT: I cant do that: basichtttpbiding1.ReaderQuotas.MaxArrayLength = 1000000; becouse I dont have any options to choose after this: basichtttpbiding1.ReaderQuotas.[Options to choose]

Original source