data sync

pips06

New member
Joined
Aug 30, 2008
Messages
4
Programming Experience
Beginner
Hi, i was wondering whether anybody could assist with an issue im having with my smart device application. I'd posted this in another thread but wasnt getting any love so.....

Basically, i've created a smart device application that utilises SQL CE. I want to be able to enter information into my client database (on the smart device)and then sync it back to my sql express database. My application is working fine although the problem im facing is when it comes to sync'ing the updates i've made to the server.
Im relatively new to vb.net and data synchronization but have been following a number of walkthroughs for OCS applications.

Anyhow, when i try to initiate the bi-directional sync i get the following error,


"Value can not be null. Parameter name: ServerSyncProvider"
This is the code im using to initiate the sync,
VB.NET:
   Private Sub NewMenuItemMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewMenuItemMenuItem1.Click

        Dim syncAgent As WQACacheSyncAgent = New WQACacheSyncAgent()
        Dim syncStats As Microsoft.Synchronization.Data.SyncStatistics = syncAgent.Synchronize()

        Me.WATERQUALITYASSURANCEDataSet.Customer.Merge(CustomerTableAdapter.GetData())

    End Sub

Any assistance would be greatly appreciated.

Ben.
 
Back
Top