【发布时间】:2013-09-02 17:42:26
【问题描述】:
使用 WCF 服务返回字节数组时出现以下错误
"读取 XML 数据时已超出最大数组长度配额 (16384)。 可以通过更改创建 XML 阅读器时使用的 XmlDictionaryReaderQuotas 对象的 MaxArrayLength 属性来增加此配额。第 1 行,位置 23626。”
我什至试图增加
<wsHttpBinding>
<binding name="EnrollmentSoapBinding" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647">
<readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" maxBytesPerRead="2147483647" />
</binding>
</wsHttpBinding>
还有,
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
仍然没有运气。还有其他想法吗?
【问题讨论】:
-
为了进一步帮助您,您可以同时发布服务器端和客户端配置吗?
标签: wcf