Page 1 of 1

Unable to cast COM object of type 'System.__ComObject' to interface type 'AXVLC.IVLCPlaylist'. (in c# app)

Posted: 07 Apr 2015 16:29
by Astarael
Hi,

I'm testing an application at work built in C# using win forms.
It's working fine on my colleague who built it's PC but not on mine.
I have the latest version of VLC.

I get the following error when trying to load videos into the players

************** Exception Text **************
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'AXVLC.IVLCPlaylist'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{54613049-40BF-4035-9E70-0A9312C0188D}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at System.StubHelpers.InterfaceMarshaler.ConvertToManaged(IntPtr pUnk, IntPtr itfMT, IntPtr classMT, Int32 flags)

Anyone any ideas - I'm thinking maybe the version of VLC? I'll know more maybe when she's back in tomorrow but right now I can't tell you anymore about the codebase.
Thanks!

Re: Unable to cast COM object of type 'System.__ComObject' to interface type 'AXVLC.IVLCPlaylist'. (in c# app)

Posted: 08 Apr 2015 11:27
by Jean-Baptiste Kempf
Please file a bug, or use 2.1.5, for now.

Re: Unable to cast COM object of type 'System.__ComObject' to interface type 'AXVLC.IVLCPlaylist'. (in c# app)

Posted: 22 May 2015 00:14
by jerry20
Same issue here.
Updated to 2.2.1 and got the same error.

Re: Unable to cast COM object of type 'System.__ComObject' to interface type 'AXVLC.IVLCPlaylist'. (in c# app)

Posted: 24 May 2016 22:15
by Lightlabyrinth
Has a bug report been filed for this? If so, is it being addressed? Because it still exists in 2.2.3, we're being forced to use 2.1.5 across all applications.

Re: Unable to cast COM object of type 'System.__ComObject' to interface type 'AXVLC.IVLCPlaylist'. (in c# app)

Posted: 24 May 2016 22:27
by da2424
Do this issue also appear for you in new projects, or only in already existing ones?

For already existing projects: Try to delete or rename the folders /obj and /bin in your project folder. At next compilation time, Visual Studio will re-generate some libraries to access to VLC.