Sync issue

Posted on 2009-04-21
Last Modified: 2013-12-05
I am trying to synchronize my updates on a button click( by keeping mobile as server and provider as client).Following is the code used for synchronization:
 Dim syncAgent As LocalDataCache1SyncAgent = New LocalDataCache1SyncAgent()
Dim syncStats As Microsoft.Synchronization.Data.SyncStatistics = syncAgent.Synchronize()
But on button click I am getting the following error:
 Argument Null Exception
Value can not be null. Parameter name: ServerSyncProvider
If I command this line,
Dim syncStats As Microsoft.Synchronization.Data.SyncStatistics = syncAgent.Synchronize()
 then it wont give the error, and no sync also working.
Need your help.
Question by:Rajeshk_cgm
    1 Comment
    LVL 48

    Accepted Solution

    Dim syncStats As Microsoft.Synchronization.Data.SyncStatistics

    //Set some properties



    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This article The purpose of this article is to suggest some tips for common messed up installations and uninstallations, and related registry entries. If you have a windows machine with reported duplicate programs, phantom (missing) programs, or…
    Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now