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?