Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9203485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:29:02+00:00 2026-06-17T23:29:02+00:00

I have been playing with Microsoft Sync Framework 2.1 to sync two local sql

  • 0

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; Password=xxxx;Database=ZzzClient");

SqlConnection serverConn = new SqlConnection("Server=XXXXXX;User ID=sa; Password=xxxx;Database=ZzzServer");

SyncOrchestrator syncOrchestrator = new SyncOrchestrator();

syncOrchestrator.LocalProvider = new SqlSyncProvider("InventoryScope", clientConn);
syncOrchestrator.RemoteProvider = new SqlSyncProvider("InventoryScope", serverConn);

syncOrchestrator.Direction = SyncDirectionOrder.UploadAndDownload;

SyncOperationStatistics syncStats = syncOrchestrator.Synchronize();

but I get following error when the Synchronize() call is executed;

Retrieving the COM class factory for component with CLSID
{EC413D66-6221-4EBB-AC55-4900FB321011} failed due to the following
error: 80040154 Class not registered (Exception from HRESULT:
0x80040154 (REGDB_E_CLASSNOTREG)).

developing envoriement VS 2012, C# asp.net project, framework 4.5
OS:windows 7 Home Prem. (x64)

SyncSDK-v2.1-x64-ENU was installed.

Microsoft.Synchronization

Microsoft.Synchronization.Data

Microsoft.Synchronization.Data.SqlServer

references were added to project from “C:\Program Files\Microsoft Sync Framework\2.1\Runtime”.

Both databases provisioned by SqlSyncScopeProvisioning.

I’ve tried Project Platform Target both x64 ans x86

Any ideas would be greatly appreciated….

Provisioned databases

I’ve changed the all references from “C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework” to “C:\Program Files\Microsoft Sync Framework\2.1\Runtime”

new references

And set the Platform Target to x64
Platform Target

“Use Local IIS Web Server” is selected
Local IIS

UPDATE:
I tried same process with a console application and it worked properly and synchronized all data.

I added following four references to console application;

“c:\Program Files\Microsoft Sync Framework\2.1\Runtime\x64\Microsoft.Synchronization.dll”

c:\Program Files\Microsoft Sync Framework\2.1\Runtime\ADO.NET\V3.1\x64\Microsoft.Synchronization.Data.dll”

“c:\Program Files\Microsoft Sync Framework\2.1\Runtime\ADO.NET\V3.1\x64\Microsoft.Synchronization.Data.Server.dll”

“c:\Program Files\Microsoft Sync Framework\2.1\Runtime\ADO.NET\V3.1\x64\Microsoft.Synchronization.Data.SqlServer.dll”

and set the application’s debug properties as following
console application's properties

Same references, same build properties(target to x64) and same code does not work for in Asp.Net project.

Could not load file or assembly ‘WebApplication2’ or one of its
dependencies. An attempt was made to load a program with an incorrect
format.

i guess, web application can’t load correct assemblies and tries to load x86 versions

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:29:03+00:00Added an answer on June 17, 2026 at 11:29 pm

    I hate answering my own questions:

    If you start an asp.net project which has x64 Sync Framework
    assemblies but you are NOT running Visual Studio under the
    administrator account, VS can not load Snyc Framework assemblies. At
    least, that’s my problem..

    If you are not administrator VS can not manage “Local IIS Web Server” properly.

    Also if I’m not wrong, “IIS Express” can not load x64 Sync Framework assemblies even if your OS is x64.

    Do not bother to use “IIS express” just use “Local IIS Web Server”
    with administrator rights on VS and set platform target x64 for your project.

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to do a query using Microsoft SQL Server 2008 R2,
I have been playing around with webkit.net in a c# win forms project, and
I have been working with Microsoft SQL Server since 6.5 along with other database
I have been playing around with GC.GetTotalMemory(). When I create a local variable of
I have been playing with Compact Framework lately and i need some advice. I
I have been playing with the new Microsoft Ribbon for WPF and looking at
I have been playing around with Node.js for two days now, I am slowly
I have been playing with some LINQ ORM (LINQ directly to SQL) and I
I've been playing around with using MySql as the membership provider for asp.net mvc
I have been playing around with clojurescriptone - neat project - to try and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.