title: How to fix this COMException - "Class not registered (Exception from HRESULT: 0x80040154"
body: <p>I have a <a href="http://en.wikipedia.org/wiki/Visual_Basic_.NET" rel="nofollow">VB.NET</a> project, and it works fine on my deveelopment machine (naturally :-)), but on two different computers I tested on, I get the following error, when I attempt to open a specific form. All three computers (including my dev machine, which works) are Windows&nbsp;7 64-bit machines, two Professional Edition (including mine) and the third is Home Basic.</p>
  
  <p>My suspicion is that it has something to do with <a href="http://en.wikipedia.org/wiki/Windows_Media_Player" rel="nofollow">Windows Media Player</a> or Adobe SWF player controls I have inserted. Here is the error:</p>
  
  <pre><code>System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
  at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid&amp; clsid, Object punkOuter, Int32 context, Guid&amp; iid)
  at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
  at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
  at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
  at System.Windows.Forms.AxHost.CreateInstance()
  at System.Windows.Forms.AxHost.GetOcxCreate()
  at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
  at System.Windows.Forms.AxHost.CreateHandle()
  at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
  at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
  at System.Windows.Forms.AxHost.EndInit()
  at WizoDesktop.FormPlayer.c4cf84dbbc00986a0b43ce266bdec20d7()
  at WizoDesktop.FormPlayer..ctor()
  at A.c237671a6e3a2745adc05bbdc0150506d.cff280b017b22ca351191a6adb2feeae4()
  at System.Windows.Forms.Command.Invoke()
  at System.Windows.Forms.Control.WmCommand(Message&amp; m)
  at System.Windows.Forms.Control.WndProc(Message&amp; m)
  at System.Windows.Forms.Form.WndProc(Message&amp; m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  </code></pre>