未处理 System.ServiceModel.Dispatcher.NetDispatcherFaultException
Message=格式化程序尝试对消息反序列化时引发异常: 尝试对参数 http://tempuri.org/ 进行反序列化时出错: GetTasksResponse。InnerException 消息是“反序列化对象 属于类型 mofang_926.MoFangWSC.GetTasksResponseBody 时出现错误。读取 XML 数据时,超出最大字符串内容长度配额 (8192)。通过更改在创建 XML 读取器时所使用的 XmlDictionaryReaderQuotas 对象的 MaxStringContentLength 属性,可增加此配额。 行 1,位置 22681。”。有关详细信息,请参见 InnerException。
http://www.suchso.com/projecteactual/wcf-jiaocheng-big-data.html
<
bindings
>
<
netTcpBinding
>
<
binding
name
=
"TcpBindingConfig"
maxBufferPoolSize
=
"655360000000"
maxBufferSize
=
"655360000"
maxReceivedMessageSize
=
"655360000000"
transferMode
=
"Streamed"
>
<
readerQuotas
maxDepth
=
"32"
maxStringContentLength
=
"655360000"
maxArrayLength
=
"655360000"
maxBytesPerRead
=
"655360000"
maxNameTableCharCount
=
"655360000"
/>
<
security
mode
=
"None"
/>
</
binding
>
</
netTcpBinding
>
<
basicHttpBinding
>
<
binding
name
=
"BasicHttpBindingConfig"
maxBufferPoolSize
=
"655360000000"
maxBufferSize
=
"655360000"
maxReceivedMessageSize
=
"655360000000"
sendTimeout
=
"00:02:00"
transferMode
=
"Streamed"
>
<
readerQuotas
maxDepth
=
"32"
maxStringContentLength
=
"655360000"
maxArrayLength
=
"655360000"
maxBytesPerRead
=
"655360000"
maxNameTableCharCount
=
"655360000"
/>
<
security
mode
=
"None"
/>
</
binding
>
</
basicHttpBinding
>
</
bindings
>