如何在运行应用程序之前将 app.config 文件中的 maxReceivedMessageSize 和 maxBufferSize 参数增加到 2000000。
最佳答案
您需要在绑定(bind)上执行此操作,但您需要在客户端和服务器上执行此操作。像这样的东西:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding maxBufferSize="64000000" maxReceivedMessageSize="64000000" />
</basicHttpBinding>
</bindings>
</system.serviceModel>
关于c# - app.config 中的 maxReceivedMessageSize 和 maxBufferSize,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14999779/