maxReceivedMessageSize and maxBufferSize in app.config

后端 未结 7 819
心在旅途
心在旅途 2020-12-16 09:30

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

7条回答
  •  难免孤独
    2020-12-16 10:00

    The currently accepted answer is incorrect. It is NOT required to set maxBufferSize and maxReceivedMessageSize on the client and the server binding. It depends!

    If your request is too large (i.e., method parameters of the service operation are memory intensive) set the properties on the server-side, if the response is too large (i.e., the method return value of the service operation is memory intensive) set the values on the client-side.

    For the difference between maxBufferSize and maxReceivedMessageSize see MaxBufferSize property?.

提交回复
热议问题