对于以下绑定,我遇到了一个问题:
无法识别的元素:“ binaryMessageEncoding”
<basicHttpBinding>
<binding name="ICCHttpBinding" openTimeout="00:01:00" closeTimeout="00:01:00" sendTimeout="00:30:00" receiveTimeout="00:30:00">
<binaryMessageEncoding compressionFormat="GZip">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binaryMessageEncoding>
<httpsTransport transferMode="Streamed" maxReceivedMessageSize="6000000" maxBufferSize="6000000" maxBufferPoolSize="12000000" />
</binding>
</basicHttpBinding>
如果我删除“ binaryMessageEncoding”并尝试,它将引发:
无法识别的元素:“ httpsTransport”
答案 0 :(得分:0)
如果您想设置readquotas并使用https,则可以尝试
<basicHttpBinding>
<binding name="BindingConfig" allowCookies="false" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647" openTimeout="00:10:00"
closeTimeout="00:10:00" sendTimeout="00:15:00" receiveTimeout="00:10:00" >
<readerQuotas maxArrayLength="2147483647" maxNameTableCharCount="2147483647"
maxStringContentLength="2147483647" maxDepth="2147483647"
maxBytesPerRead="2147483647" />
<security mode="Transport" >
</security>
</binding>
</basicHttpBinding>