Questions tagged [microsoft-sync-framework]

The Microsoft Sync Framework enables data synchronization in .NET applications in a hub-and-spoke or peer-to-peer relation. It uses metadata to synchronize datasets from different sources and formats to subscribers.

Sync Framework DevCenter
https://msdn.microsoft.com/en-us/sync/default.aspx

Sync Framework Samples
http://archive.msdn.microsoft.com/sync EDIT: this page seems to have moved. Search for 'sync framework' on the MSDN samples gallery like this.

FAQ
Q: Can you use Sync Framework to sync data over the internet/network/... ?
A: Yes, see the 'N-tier' samples on the sample page above for examples using .

Q: What's the difference between Sync Framework 2.0, 2.1 and 4.0 ?
A: (imho) 2.0 = offline data capabilities (hub and spoke)
2.1 = collaborative sync (peer to peer)
4.0 = 2.1 + / / (2.1+4.0 is like .NET 2.0+3.0: a layer cake)

Q: Can you use Sync Framework + SqlServer2008 change tracking to detect changes on the server?
A: Yes, see the sample code in this msdn article.

Q: Can you use on the client and SqlServer2008 change tracking on the server?
A: Yes (although this appears not to be supported by Microsoft because it uses an unsupported SqlExpressClientProvider sample). See this question.

Q: Sync Framework 2.0 uses datasets to transfer changes. Doesn't this get awfully slow over the internet?
A: Dataset serialization is indeed suboptimal in it's default state. Use a dataset surrogate or binary serialization (but only over binary encoding like net.tcp). Compress if needed, see this comparison.

748 questions
35
votes
5 answers

Mocking a type with an internal constructor using Moq

I'm trying to mock a class from the Microsoft Sync Framework. It only has an internal constructor. When I try the following: var fullEnumerationContextMock = new Mock(); I get this error: System.NotSupportedException:…
Tom Robinson
  • 8,348
  • 9
  • 58
  • 102
23
votes
1 answer

Syncing SQL Server 2008 Databases over HTTP using WCF & Sync Framework

Has anyone here worked with Sync Framework and syncing through WCF endpoints? Please share code samples or sample projects. I am specifically looking for offline scenarios where client comes online only to fetch updates from the Server.
Raj
  • 4,405
  • 13
  • 59
  • 74
17
votes
9 answers

Sync Framework with SQL DB's: Getting Started

I have an app that uses SQL Enterprise to store all data in 4 different DB's. I needed to build in the ability to work "offline" for my users. I accomplished this through Merge Replication to local SQL Express installs for everyone. This "Works"…
16
votes
4 answers

Microsoft Sync Framework COM class error

I have been playing with "Microsoft Sync Framework 2.1" to sync two local sql server 2008 databases with an asp.net project. my code: SqlConnection clientConn = new SqlConnection(@"Server=XXXXXX;User ID=sa;…
Adam Right
  • 955
  • 6
  • 17
  • 35
15
votes
3 answers

Is Microsoft Sync Framework alive?

According to the MS documentation Sync Framework Toolkit (https://code.msdn.microsoft.com/Sync-Framework-Toolkit-4dc10f0e) is a legacy open source product which MS no longer…
Access Denied
  • 8,723
  • 4
  • 42
  • 72
15
votes
1 answer

implement Microsoft sync framework with android device

I need to implement Microsoft sync framework with my android App. I took help from here Android example with Microsoft Sync Framework toolkit. Updated Link: SyncFrameworkAndroid But still i did not understand the working flow. Anyone have any idea…
Praveen Sharma
  • 4,326
  • 5
  • 25
  • 45
13
votes
2 answers

Can you sync CoreData with iCloud?

does anyone know if and how you can sync CoreData apps with iCloud? If I understand the Apple iCould instructions right you can not sync CoreData, can you?
13
votes
4 answers

How to merge and synchronize SQL Server Database Files?

I'm building a C# program for windows tablets that are synchronized with a database. They will each have their own local .MDF SQL Server database which they interact with using SQL Server Express. However the users will take the tablets out of an…
13
votes
1 answer

Microsoft Sync Framework Or Replication

What is deference between Microsoft Sync Framework and Replication? which one is better?
masoud ramezani
  • 22,228
  • 29
  • 98
  • 151
12
votes
1 answer

MS Sync Framework and SQL Server Compact

I develop a Windows C# application which can work in Online and Offline mode. When in Online mode it connects to a SQL Server. In Offline mode it connects to a local DB. I use the Microsoft Sync Framework 2.1 to sync the 2 databases on demand. Until…
juergen d
  • 201,996
  • 37
  • 293
  • 362
12
votes
4 answers

Open source framework à la Microsoft Sync Framework suggestions?

We are implementing a warehouse management system atop an open source stack (Java, web services & friends). In this system, we want to integrate many mobile devices which should also be capable of adequate online/offline functionality, e.g.…
11
votes
4 answers

Sync Framework Resources

I am looking for resources on Microsoft Sync Framework. Although MSDN and Google Search gave me the brief overview, I want some demos and presentations. Also, is Live Mesh based on Sync Framework?
ManojN
  • 855
  • 1
  • 11
  • 22
9
votes
1 answer

Is there a successor for Sync Framework 2.1?

we are using Microsoft Sync Framework 2.1 in various customer projects for file and database sync. Extended Support will end in 2021. So my questions are: What is Microsofts strategy for the sync framework? Is it going to be open source, so we…
hot33331
  • 805
  • 11
  • 25
9
votes
1 answer

Using Microsoft Sync Framework to sync files across network

The file synchronization example given here - http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=sync&ReleaseId=3424 only talks about syncing files on the same machine. Has anyone come across a working example of using something…
Cranialsurge
  • 6,104
  • 7
  • 40
  • 39
8
votes
1 answer

Progressive web application with persistent local database

What is the best choice for local database when implementing a progressive web application? Initially the choice was to design a smart client desktop application with one click deployment that will install a local SQLite database. Local database can…
1
2 3
49 50