wcf - Sync Services for ADO.NET Solution for Mobile Devices - ArgumentNullException -


I am trying to create a sync between my mobile and database server. I am following the following and it gets . Name of the parameter: ServerSyncProvider in the sync () function

code

  Private Zero sync () {Cursor.Current = Cursors.WaitCursor; WebReference.NorthwindCacheSyncService svcProxy = New WebReference.NorthwindCacheSyncService (); Microsoft.Synchronization.Data.ServerSyncProviderProxy syncProxy = New Microsoft.Synchronization.Data.ServerSyncProviderProxy (svcProxy); // Call the sync agent. Synchronize () To start the synchronization process, // sync updates only the local database, not the data source of your project. Northwink CascusCognitive Sync Sync = New Northwink Cascake Agent (); Microsoft.Synchronization.Data.SyncStatistics syncStats = syncAgent.Synchronize (); // TODO: Reload your project data source from the local database (for example, call TableAdapter.Fill method). // View synchronization statistics messages box ("Changes downloaded:" + Synchronization fees total changelogs are downloaded.Toasting () + "\ r \ nUploaded changes:" + SyncCallCancelSuploadTownString ()); Cursor Current = cursor Default; }   

As an error, "value can not be empty. Name of the parameter: ServerSyncProvider "

This means that it has not been started

you've lost the code of a line

Northwind CascacheEgent SyncEgent = New Northwink Cascansyncents (Agent);

  syncAgent.RemoteProvider = syncProxy Microsoft.Synchronization.Data.SyncStatistics syncStats = syncAgent.Synchronize ();    

Comments