Is it possible to use AForge libraries in Windows Forms Control Library?

1

I have a Windows Forms Control Library called "UserControlTest" (I'm practicing with it right now) and I am trying to use some of the AForge Libraries Controls on it. It lets me put them on the design and doesn't have any errors after building the solution, but when I try to run it it says

Failed to create UserControl 'UserControlTest.UserControl1'

The error message was 'Could not load file or assembly 'AForge.Video, Version=2.2.5.0, Culture=neutral, PublicKeyToken=cbfb6e07d173c401' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515')

I need the AForge libraries for this particular user control, but there is this problem. I want the libraries in the user control because I need to programmatically create this user control 2 or 3 times (sometimes more, sometimes less, so it needs to be dynamic). Is this not possible? I thought it would still work since it is still a windows form. I can show my code, but I don't think that would help since there are no errors in the code.

c#
user-controls
aforge
dynamic-usercontrols
asked on Stack Overflow Sep 15, 2014 by user3634308

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0