WCF request data: the maximum Message Size quota for incoming messages (65536) has been exceeded. To increase the quota, use the maxcompute edmessagesize attribute on the corresponding binding element ., Wearing A Cute vest for sanitation

Source: Internet
Author: User

WCF request data: the maximum Message Size quota for incoming messages (65536) has been exceeded. To increase the quota, use the maxcompute edmessagesize attribute on the corresponding binding element ., Wearing A Cute vest for sanitation

 

Generally, the WCFClient tool is used for testing after the WCF Service is written. When a data request is sent, an exception or error occurs when the returned data volume exceeds the default value.

The error is also prompted clearly, which is nothing more than modifying the size of the received value. This configuration modification test can also be performed on the WCFClient, as shown in the following steps:

The Client. dll. config displayed in the service configuration shows the simulated Client configuration information. The value of maxcompute edmessagesize is not set in the Bind node, and the default value is 65536.

Right-click the configuration file and you will see the option "Edit with SvcConfigEditor" = ".

Set MaxBufferPoolSize/MaxBufferSize/MaxReeiveMessageSize to the maximum value "2147483647". You will be pleasantly surprised when you refresh the service ~~~ After saving, the client configuration will be automatically updated.

When you call a method, everything is OK. However, big data is not displayed in formatting. The complete service data is returned in XML.

In this case, you only need to change the client configuration to the actual client configuration of your project.

But !!! When you use WCFClient for testing again next time, you will find that the client configuration has been restored to the default value =. Fellow me ~ Open tools/Options =

Just hook up this circle ~~!

This dog skin plaster can be used .........

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.