首页 > 代码库 > wcf布到服务器下载文件大小限制问题

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

大家都知道,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布到服务器下载文件大小限制问题