locked
Sync Framework 2.1 under ASP.NET MVC RRS feed

  • Question

  • Hello everyone, 

    I am creating application under ASP MVC 3 on x64 platform, and try to work with MS Synchronization Framework 2.1 for synchronize MS SQL Express and MS SQL Compact 3.5 SP2 Databases. Client and server should synchronize via WCF services. I have examples from Sync SDK with WCF examples.

    I want to realize synchronization by click on web page. Actually I creates console application where synchronization by WCF working well. but when I try to do the same logic under ASP MVC 3 in method Synchronize in class SyncOrchestrator return exception:

    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)). System.Runtime.InteropServices.COMException (0x80040154): 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)). at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, ChangeDataAdapter callbackChangeDataAdapter, SyncDataConverter conflictDataConverter, Int32& changesApplied, Int32& changesFailed)

    As I know the reason is platform case between x64 and x86. But in all my solution I using the same reference to Sync Framework 2.1. and solution working under console application but not in web.

    Is someone know that the my mistake ? may be i need have something special for it ?

    Monday, November 7, 2011 4:05 PM

Answers

  • Thanks for all, Error was on IIS side, I redo x64 platform setup . Now all working fine.
    • Marked as answer by heppy_aga Friday, November 11, 2011 4:03 PM
    Friday, November 11, 2011 4:02 PM

All replies

  • which platform did you install for sync framework? x64 or x86? if you installed x86, can you check if the app pool that your asp.net mvc app is running on is configured to allow 32-bit? if not, set Enable 32-Bit Applications to True.

    Tuesday, November 8, 2011 2:50 AM
  • Thanks , but I try run in under Visual Studio - ASP.Net Developer server. Is is possible to manage Developer server ? 

    Tuesday, November 8, 2011 8:25 AM
  • on your the project properties of your web application, try changing the Platform Target under the Build tab to match the platform of Sync Framework you installed.

    e.g., instead of having Any CPU as the target, change it to x86 or x64 depending on the Sync framework you installed

    Tuesday, November 8, 2011 8:39 AM
  • i did it for x64 platform. but now IIS can't load application, ISS can't load library , I don't know why, I don't use any other external components.   
    Tuesday, November 8, 2011 12:38 PM
  • did you get it running under Visual Studio - ASP.Net Developer server?

    are you deploying on a local IIS instance?

     

    Wednesday, November 9, 2011 4:49 AM
  • Thanks for all, Error was on IIS side, I redo x64 platform setup . Now all working fine.
    • Marked as answer by heppy_aga Friday, November 11, 2011 4:03 PM
    Friday, November 11, 2011 4:02 PM