Advertisement
Advertisement
| 06.24.2008 at 06:34AM PDT, ID: 23510900 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
CustomBinding custBind = new CustomBinding(); BindingElementCollection bindElemColl = newBindingElementCollection(); BinaryMessageEncodingBindingElement bindElem = new BinaryMessageEncodingBindingElement(); bindElem.MaxReadPoolSize = 64; bindElem.MaxWritePoolSize = 16; bindElem.MaxSessionSize = 2048; XmlDictionaryReaderQuotas readerQuotas = new XmlDictionaryReaderQuotas(); readerQuotas.MaxDepth = 32; readerQuotas.MaxStringContentLength = largeValue; readerQuotas.MaxArrayLength = 16384; readerQuotas.MaxBytesPerRead = 4096; readerQuotas.MaxNameTableCharCount = 16384; bindElemColl.ReaderQuotas = readerQuotas; LAST LINE GIVES ERROR: Error 5 Property or indexer 'System.ServiceModel.Channels.BinaryMessageEncodingBindingElement.ReaderQuotas' cannot be assigned to -- it is read only |