tags:

views:

309

answers:

3

I'm trying to embed a Flash object in my app. I've added a reference to the ShockwaveFlash COM Object but the app fails at instantiation:

ShockwaveFlashObjects.ShockwaveFlashClass shockwave = new ShockwaveFlashObjects.ShockwaveFlashClass();

With the following error:

System.Runtime.InteropServices.COMException : Retrieving the COM class factory for component with CLSID {D27CDB6E-AE6D-11CF-96B8-444553540000} failed due to the following error: 80040154.

I'm running Vista x64, could that be the problem?

Anyone experience this before? Any ideas how to fix this error?

A: 

80040154 is REGDB_E_CLASSNOTREG. Most likely, your code runs in a 64 bit process but Shockwave is only installed for 32 bit.

Johannes Passing
You know I thought I setting the Platform Target to x86, but I guess I didn't try that. Sure enough, that worked!
noah.blumenthal
A: 

I am facing the exact error when I ported codes to Server 2008 x64 and tried to compile in VS 2008.

A: 

But when I changed Target CPU from 'Any' to 'x86', it worked.