[英]Unrecognized element 'readerQuotas' on BasicHttpBinding
I have a problem with my WCF service config, I get the error: "The formatter threw an exception while trying to deserialize the message .... the maximum string content length quota (8192) has been exceeded....." 我的WCF服务配置有问题,我收到错误:“格式化程序在尝试反序列化消息时抛出了异常....已超出最大字符串内容长度配额(8192)......”
So after searching at google i found that i need to set this line in my config file : 所以在google搜索后我发现我需要在配置文件中设置这一行:
<readerQuotas maxStringContentLength="2147483647" />
but when i add it to the web.config, i get the error : 但是当我将它添加到web.config时,我收到错误:
Unrecognized element 'readerQuotas' 无法识别的元素'readerQuotas'
what shall i do?! 我该怎么办?!
my binding : 我的约束力:
<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.