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

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)

Tags:
Post comment as twitter logo facebook logo
Sort: Newest | Oldest

Glad that I could help. :)

Hey thank u so so so so so so much....i cudnt express that in my self..u knw i have spent more than two of my project time finding how to play a flash animation in this shock wave flash object..its giving the same error and i have done all the things various people have told me,

i think i have searched the whole internet regarded with this matter....but nothin worked..and finally i came here...and it worked! i think i can add this as one of my happiest days in ma life...thank u so much...

may success always be with u...best of luck with ur work..