大家都知道,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这个节点

相关文章:

  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-01-06
  • 2021-08-09
  • 2021-12-06
  • 2022-02-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-07-26
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
相关资源
相似解决方案