Created On:  06 September 2011

Problem:

When trying to run a application built using the CaliberRM SDK within Visual Studio 2010 it fails at runtime with the error 'COM Exception was unhandled'.

A further Visual Studio error message includes 'Retrieving the COM class factory for component with CLSID {3AACC1CC-7377-11D5-B316-0800309CC2CE} failed due to the following error: 80040154'.

Resolution:

This error can occur when your Visual Studio 2010 project's Platform target is set to 'Any CPU'. i.e. the code will be executed against 32 or 64-bit architectures.

To resolve this error:

1.  Within the Visual Studio Solution Explorer right-click on your Project and select Properties
2.  The Properties window will open
3.  Select Build
4.  Under the Platform target combo box select 'x86'
5.  Save changes