我的WCF服务配置有问题,我得到了错误:“格式化程序在反序列化消息时抛出了一个异常.超过了最大字符串内容长度配额(8192) .”
所以在google搜索之后,我发现我需要在我的配置文件中设置这一行:
<readerQuotas maxStringContentLength="2147483647" />但是,当我将它添加到web.config中时,我会得到错误:
未识别元素“readerQuotas”
怎么办?!
我的装订:
<bindings>
<basicHttpBinding>
<binding name="Stream_Binding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed" messageEncoding="Mtom"/>
<readerQuotas maxStringContentLength="2147483647" />
</basicHttpBinding>
</bindings>发布于 2013-11-14 21:00:24
readerQuotas节点需要在绑定的内部
https://stackoverflow.com/questions/19988130
复制相似问题