I am using Microsoft Synchronization services to synchronize a SQL Server Compact Edition database with a SQL Server 2008 database. I used the netcfSvcUtil.exe tool to generate the wcf service the mobile client will use to connect to the server.
The client uses a basicHttpBinding, which is required for WCT on the compact framework. The synchronization works fine for small amounts of data. When I try to synchronize larger amounts of data I receive an exception with the following message on the client:
"The maximum message size quota for incoming messages(65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding."
It took a while but I figured out how and where to change this on the client. In MyServiceClientContract I change the binding as it is created:
Public Shared Function CreateDefaultBinding() As
Dim binding As System.ServiceModel.Channels.CustomBinding =
View Complete Post