WCF maxReceivedMessageSize not being read from config

后端 未结 3 1868
失恋的感觉
失恋的感觉 2020-12-15 20:43

I have a the following server side app.config for a WCF service:

  
    
      
        

        
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 21:19

    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.

提交回复
热议问题