加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

WCF 上传大数据时 报错 读取 XML 数据时,超出最大数组长度配额(

发布时间:2020-12-16 09:12:36 所属栏目:百科 来源:网络整理
导读:修改服务端配置 服务器端没有 bindings 节点需要在system.serviceModel中增加 bindings basicHttpBinding binding name="LargeDataTransferServicesBinding" sendTimeout="00:10:00" maxBufferPoolSize="10485760" maxBufferSize="10485760" maxReceivedMess

修改服务端配置

服务器端没有

bindings 节点需要在system.serviceModel中增加



<bindings> <basicHttpBinding> <binding name="LargeDataTransferServicesBinding" sendTimeout="00:10:00" maxBufferPoolSize="10485760" maxBufferSize="10485760" maxReceivedMessageSize="2147483647" transferMode="Streamed" messageEncoding="Text"> <readerQuotas maxStringContentLength="10485760" maxArrayLength="10485760" maxBytesPerRead="10485760" /> </binding> </basicHttpBinding> </bindings> 在bindingConfiguration 中填写 上边 binding 的name “LargeDataTransferServicesBinding” <services> <service name="WCFdome.wcfupfiles"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="LargeDataTransferServicesBinding" contract="WCFdome.Iwcfupfiles" /> <host> <timeouts openTimeout="00:10:00" /> </host> </service> </services>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读