Flash.ocx , Flash10c.ocx Windows Vista VB & C#.NET Class not registered / HRESULT: 0×80040154

August 27th, 2009 by Oliver - Tagged with , , - Posted in Other Stuff, Web Development

(No Ratings Yet)
Loading ... Loading ...

Everyone has they’re off day, mine this month involved spending four hours wondering why I couldn’t get Visual Studio to import the Shockwave Flash library and after I finally did get it to (by re-registering Flash10.ocx) wondering why I was still getting a ‘Class Not Registered’ while trying to compile the app.

The full(ish) error message:

“An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0×80040154 (REGDB_E_CLASSNOTREG))”

If your running XP x64 / Vista x64 / Windows 7 x64 and receiving this error it’s simply because you have your application set to compile for ‘Any CPU’, change the Target CPU to ‘x86′, try compiling your application and it should work.

Adobe are still to release a 64bit version of Flash, hence the libraries require 32bit architecture. This is (in my eyes) why the uptake of 64bit Internet Explorer hasn’t happened.

(Note: Option to change the target CPU type is in the Compile -> Advanced Compile Options… section of your applications properties)

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>