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?