首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法识别的元素“readerQuotas”在BasicHttpBinding上

无法识别的元素“readerQuotas”在BasicHttpBinding上
EN

Stack Overflow用户
提问于 2013-11-14 20:53:02
回答 1查看 1.1K关注 0票数 1

我的WCF服务配置有问题,我得到了错误:“格式化程序在反序列化消息时抛出了一个异常.超过了最大字符串内容长度配额(8192) .”

所以在google搜索之后,我发现我需要在我的配置文件中设置这一行:

代码语言:javascript
复制
<readerQuotas maxStringContentLength="2147483647" />

但是,当我将它添加到web.config中时,我会得到错误:

未识别元素“readerQuotas”

怎么办?!

我的装订:

代码语言:javascript
复制
    <bindings>
      <basicHttpBinding>
        <binding name="Stream_Binding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed" messageEncoding="Mtom"/>
<readerQuotas maxStringContentLength="2147483647" />
</basicHttpBinding>
    </bindings>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-11-14 21:00:24

readerQuotas节点需要在绑定的内部

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19988130

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档