I'm building a Winform application on c# .net 4. I'm trying to use a VLC plugin as a toolbox COM component. The component is successfully added into the toolbox. However, when I use it there is an error:
Failed to create component 'AxHost'. The error message follows: 'System.Runtime.InteropServices.COMException (0x80029C4A):Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A(TYPE_E_CANTLOADLIBRARY)
I tried the same on a 32bit system and it works fine. This error is in a 64 bit system. Tried changing the build to both 32 and 64 bit.
I also tried to register the DLL using regserv32. But I am not sure if i am registering the correct DLL.
How do I solve this?
Version 2.x of VLC isn't managed-code-friendly, unless it's recompiled to be shared and run as an executable server(among other issues). Rather than re-build the plugin, just use a slightly older one.
A few tips to remember:
Found this old thread as now it's May 2018 and I still came across this problem. Turns out that because I've installed the 64 bit version of VLC, it won't work. Need to install the 32 bit ver 3.02 and activex then works.
User contributions licensed under CC BY-SA 3.0