maxReceivedMessageSize和maxBufferSize中的app.config [英] maxReceivedMessageSize and maxBufferSize in app.config

查看:133
本文介绍了maxReceivedMessageSize和maxBufferSize中的app.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何运行应用程序之前增加app.config文件maxReceivedMessageSize和maxBufferSize参数200万。

How to increase maxReceivedMessageSize and maxBufferSize parameters in app.config file to 2000000 before running the application.

推荐答案

您需要做的是对你的约束,但你需要做的是在两个客户端服务器。是这样的:

You need to do that on your binding, but you'll need to do it on both Client and Server. Something like:

<system.serviceModel>
    <bindings>
        <basicHttpBinding>
            <binding maxBufferSize="64000000" maxReceivedMessageSize="64000000" />
        </basicHttpBinding>
    </bindings>
</system.serviceModel>

这篇关于maxReceivedMessageSize和maxBufferSize中的app.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆