Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Am building an app in VB.NET which must use VLC. Setup a form, add the VLC component to the toolbox, add the VLC control to the form, and got it to play. Hurrah!

Then I copied that VLC control so I have two playout windows, and they both work!

Then I create a second form, cut one of the VLC controls and paste it to the new form, and that works, too.

BUT... then I create a third form, and try to drag another VLC control instance onto the other form. Every time I try, I get this error:


Failed to create component 'AxHost'. The error message follows:
'System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at
System.Windows.Forms.Design.DocumentsDesigner.AxToolbooxItem.CreateComponentsCore(IDesignerHost host)
at
System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesigner Host host, IDictionary defaultValues)
at
System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)
at
System.Windows.Forms.Design.OleDragDropHandler.CreateTool(ToolboxItem tool, Control parent, Int32 x, Int32 y, Int32 width, Int32 height, Boolean hasLocation, Boolean hasSize, ToolboxSnapDragDropEventArgs e)'


Now, I can copy of of the existing VLC controls and paste it into form 3, and that works... just can't create a new control from scratch!

Obviously, VLC is installed and registered, because it alread works in the first instance. I'm scratching my head to understand this, and the error message is non-obvious. Sure, I could paste an existing version of the VLC code, but the error has me thinking that something deeper is wrong, and that it would be best to address it before proceeding.

For what it's worth, this is VB 2013, and VLC 2.2.1.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900