簡體   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