Tuesday, March 6, 2012

When running the sync framework you may run into a Com Exception similar to the following:

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)).

This error occurs due to the application environment not supporting the sync framework assembly target platform (x32/x64).
Also, you will notice is occur during synchronisation of tables and not during provisioning.

To solve this problem, ensure that you are building your application against the same platform target as the assembly type of the sync framework you are using.
So for example if you are running your synchronisation code using a Console Application making use of the x64 Sync framework assemblies, ensure you set your console application platform target is set to x64 (also ensure your OS is x64).


In the scenario where you are sync'ing via a web application or service, ensure IIS app pool supports the assembly platform type.
A typical scenario is where you run a x32 sync framework assembly in an IIS7 x64 website resulting in a Com Error. In this case you need to specifically configure you IIS App Pool to support the execution of x32 bit assembly's.


posted on Tuesday, March 6, 2012 12:48:58 PM (South Africa Standard Time, UTC+02:00)  #    Trackback
Related posts: