Home > ActiveX Control, COM > Error: Failed to create component ‘AxHost’

Error: Failed to create component ‘AxHost’

When adding an ActiveX control onto a Visual Studio 2008 or 2010 Form, you get an error message stating Failed to create component ‘AxHost’, followed by some other text. This is caused any existing AxInterop.????.dll and Interop.?????.dll file that may already existing in the Project\obj\Debug folder. This is not to be confused with the Project\bin\Debug directory.

To correct, remove any Project level reference, then delete the 2 dll files. Then you can add the ActiveX control to the Form without any error.

Categories: ActiveX Control, COM
  1. kztd
    April 12, 2012 at 8:05 pm

    It worked great, I had to (also) use the control in a new project, then copy those .dll’s in, create a new form with the control on it, and then copy over my code from the old form and delete the old form. That was alot easier that recreating the whole solution.


  2. December 2, 2013 at 3:33 am

    Thanks bro!
    This was a time saver.
    It really made me cry…

  3. Al
    July 9, 2014 at 12:11 pm

    I have the same error so I followed your procedure above but the error is still there. I am trying to add the TI’s “bq80xRW.ocx”, which was written for vb6, to the Windows form in VS2008. Please help.


  4. LOL
    November 6, 2016 at 2:55 pm

    It works!! Thanks!!

  5. Carlos Duarte
    March 1, 2017 at 9:50 am

    Thanks man, i had this issue too.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: