码迷,mamicode.com
首页 > 其他好文 > 详细

wcf布到服务器下载文件大小限制问题

时间:2017-05-03 14:38:58      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:ota   close   message   大小限制   received   false   protocol   encrypt   receive   

大家都知道,wcf上传文件是有大小限制的,对,上传下载都有限制,但是关于wcf的配置,网上确实不太好找或者说是不准确不全面

 

<binding name="NetTcpBinding_IContract" closeTimeout="00:01:00" openTimeout="00:01:00" portSharingEnabled="true"
            receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false"
            transferMode="Buffered" transactionProtocol="OleTransactions"
            hostNameComparisonMode="StrongWildcard" listenBacklog="20"
            maxBufferPoolSize="2147483647" maxBufferSize="2147483647"
            maxConnections="500" maxReceivedMessageSize="2147483647">
           <readerQuotas maxDepth="32" maxStringContentLength="2147483647"
              maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00"
              enabled="false" />
          <security mode="None">
            <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
            <message clientCredentialType="Windows" />
          </security>
        </binding>

记住,要有security这个节点

wcf布到服务器下载文件大小限制问题

标签:ota   close   message   大小限制   received   false   protocol   encrypt   receive   

原文地址:http://www.cnblogs.com/chzbgb/p/6801593.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!