A note about Visual Studio .NET projects that show an exception on 64 bit Windows

This note is for developers using MS Visual Studio to create .NET applications that use the BB FlashBack SDK.

 

Symptoms:

When you run a project that uses the FlashBack SDK on a 64 bit version of Windows, you see this exception:

System.Runtime.InteropServices.COMException: Retrieving the COM class
factory for component with CLSID {...} failed due to the following
error: 80040154.

 

Reason:

The Interop is a managed assembly using the 64-bit Framework and the SDK contains 32-bit COM objects. If you run these COM objects in a 64 bit environment, you will see the error message above.

 

Fix:

Modify your project's platform from 'Any CPU' to 'X86' (in Project's Properties, Build/Platform's Target).