2

我们目前正在重写一个遗留系统,并且出于多种原因一直在使用 ServiceStack。我们处理简历/pd 等,所以我们必须处理更大的消息。在测试我们的一条服务消息时,我们收到了以下错误消息:The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader.

一些研究使我ServiceStack.ServiceModel.Serialization.DataContractDeserializer发现调用Instance()MaxStringContentLength位置设置为 1024*1024 或 1048576(我相信的字节数)。无需重新编译类,是否有另一种方法来增加MaxStringContentLength调用中设置的内容Instance()(例如插件/功能等)?最后,虽然我们更愿意流式传输这些数据,但目前有一些外部因素阻止我们这样做。

4

0 回答 0