Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > Compact Framework > CF Data Access

CF Data Access Data access techniques with Compact Framework applications

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2008, 12:21 AM
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2008
Age: 29
Posts: 4
Reputation: 0
pips06 is on a distinguished programming path ahead
Default vb.net SQL CE data sync

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,


Quote:
"Value can not be null. Parameter name: ServerSyncProvider"
This is the code im using to initiate the sync,
Code:
   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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 7:51 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.