1
我的WCF服务配置出现问题,出现错误: “格式化程序在试图反序列化消息时抛出异常.... 最大字符串内容长度配额( 8192)已经超过.....”BasicHttpBinding上无法识别的元素'readerQuotas'
因此,在谷歌搜索后,我发现,我需要设置这条线在我的配置文件:
<readerQuotas maxStringContentLength="2147483647" />
但是当我把它添加到网页。配置,我得到的错误:
无法识别的元素'readerQuotas'
我该怎么办?
我绑定:
<bindings>
<basicHttpBinding>
<binding name="Stream_Binding" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed" messageEncoding="Mtom"/>
<readerQuotas maxStringContentLength="2147483647" />
</basicHttpBinding>
</bindings>