c# - 可以发送到 WCF 服务的数据量是否有大小限制?

标签 c# .net wcf

您可以发送到 WCF 服务的数据量是否有大小限制? 我发送了一个对象数组,当该数组达到一定大小时,我收到 404 错误请求异常。

这是 httpHosting 的限制吗?另一种类型的托管会更好吗?

最佳答案

存在最大数组大小和最大内容大小。 这是用于增加大小的 XML(放在您的 App.config 中)。

指定网络 tcp 绑定(bind)配置:

    <bindings>
        <netTcpBinding>
          <binding name="TCPSession"  
closeTimeout="01:01:00"
            openTimeout="01:01:00" receiveTimeout="01:10:00" sendTimeout="01:01:00"
            transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
            hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647"
            maxBufferSize="2147483647" maxConnections="10" maxReceivedMessageSize="2147483647"
        </netTcpBinding>
      </bindings>

关于c# - 可以发送到 WCF 服务的数据量是否有大小限制?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1344463/

相关文章:

java.lang.String 类型的 Android Value ... 无法转换为 JSONArray

c# - 多个 AddHostedService dotnet 核心

c# - 解决错误: 'Timer' is an ambiguous reference between 'System.Windows.Forms.Timer' and 'System.Timers.Timer'

c# - System.String 没有实现接口(interface) System.IConvertible

c# - .Net 数据结构 : ArrayList, List、HashTable、Dictionary、SortedList、SortedDictionary——速度、内存以及何时使用它们?

wcf - 在 WCF 中读取调用者的 IP 地址(OperationContext 为空)?

c# - 当 WCF 服务和 jquery 函数在不同的项目中但在同一解决方案中时,使用 jquery 调用 WCF 服务函数

c# - 获取通用类的属性

c# - WPF 上下文相关帮助 - 最佳实践

c# - LINQ 和唯一 ID