Forum General

System.Xml.XmlDictionaryReaderQuotas() - 'XmlDictionaryReaderQuotas' does not contain a constructor

DannyLloydDannyLloyd USMember ✭✭

I am developing an application that uses a web service. I am following the example at

When I use the code:
binding.ReaderQuotas = new System.Xml.XmlDictionaryReaderQuotas() {
MaxArrayLength = 2147483646,
MaxStringContentLength = 5242880,

I get the error - 'XmlDictionaryReaderQuotas' does not contain a constructor that takes 0 arguments

I see other examples on the web that use XmlDictionaryReaderQuotas, but I cannot seem to get by this error.

Any suggestions will be appreciated.



  • usertinausertina MDMember

    I have the same error and don't know how to solve it. @DannyLloyd how did you solve it? Thanks in advance!

  • DannyLloydDannyLloyd USMember ✭✭

    In my case, the problem was caused by the web service returning an error page. When it returned real data, the problem was resolved.

Sign In or Register to comment.