【发布时间】:2011-06-06 07:48:07
【问题描述】:
I gone through this MSDN link but could not get enough details
谁能解释一下我需要设置这个值的位置和原因。
当我尝试将数据协定对象发送到服务方法并遇到异常时遇到了设置远程服务器返回错误:未找到。,
我的数据合同具有 List 属性,如果列表包含 7 个对象,则它与 6 个对象一起工作正常。
我猜这是数据合同大小的问题。
当我在配置文件中更改绑定时
<readerQuotas maxDepth="64" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="4096" />
到
<readerQuotas maxDepth="128" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="4096" />
Data Contract 对象到达 Service 进行处理。
【问题讨论】:
标签: c# wcf wcf-binding