WCF - How to Increase Message Size Quota

后端 未结 13 2128
失恋的感觉
失恋的感觉 2020-11-22 06:16

I have a WCF Service which returns 1000 records from database to the client. I have an ASP.NET WCF client (I have added service reference in asp.net web application project

13条回答
  •  忘掉有多难
    2020-11-22 06:59

    If you're still getting this error message while using the WCF Test Client, it's because the client has a separate MaxBufferSize setting.

    To correct the issue:

    1. Right-Click on the Config File node at the bottom of the tree
    2. Select Edit with SvcConfigEditor

    A list of editable settings will appear, including MaxBufferSize.

    Note: Auto-generated proxy clients also set MaxBufferSize to 65536 by default.

提交回复
热议问题