Error using Accord.Net package

Asked

Viewed 32 times

0

I’m making a Windows Forms C# application and using . Netframework 5.0 to record and save videos to the computer with a webcam. I use the Accord.Net package for recording. It was almost ready with the program, but started to give an error when trying to instantiate and execute the form that was making the recording.

THE MISTAKE:

System.IO.Filenotfoundexception: 'Could not load file or Assembly 'Corecompat.System.Drawing, Version=0.0.0.0, Culture=neutral, Publickeytoken=null'. The system cannot find the file specified.

Form1 form1 = new Form1();   //o erro acontece aqui

CHECKS:

As this error appears soon when trying to instantiate Form1 that this recording present I started to remove from Form1 part of what I had done to see what was causing the problem and I checked that the code passes from the instance of Form1 and runs normally if not instantiated the class Accord.Video.DirectShow.VideoCaptureDevice.

private VideoCaptureDevice FinalVideo = null;

Just instantiating this class already starts to give the same error again. I tried to do the installation and reference of CoreCompat.System.Drawing, but to no avail.

Can someone help me with this problem?

1 answer

0


After a lot of research and tests, to work properly I had to use the Aforge.Net package to capture the webcam image, and I started using the Accord.Net package only to compress the video images and save it on my computer. When merging the two libraries this error stopped appearing in the compilation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.