WCF service - MaxReceivedMessageSize property
Posted on 2012-09-20
I got a message about MaxReceivedMessageSize, when I invoke a WCF service in WCF Test Client. I think the dataset the Service return is bigger than others. How to solve this problem? Can you provide some sample code?
"Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service."
"The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element."