错误信息
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.
原因
传输的消息超过了WCF默认的尺寸。
解决
给binding设置消息尺寸。注意,必须前后台都要设置。
binding.MaxReceivedMessageSize = int.MaxValue;