繁体   English   中英

BasicHttpBinding上无法识别的元素'readerQuotas'

[英]Unrecognized element 'readerQuotas' on BasicHttpBinding

我的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>

readerQuotas节点需要在绑定内部

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM