I'm trying to make a simple video player so i wont to use
Microsoft.DirectX.AudioVideoPlayback.dll
but when i'm using this dll file programe raise this error
Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
before the open file dialog appear in this code
private void button1_Click(object sender, EventArgs e)
{
int width = this.panel1.Width,
height= this.panel1.Height;
OpenFileDialog open = new OpenFileDialog();
open.ShowDialog();
ss = new Video(open.FileName, false);
ss.Owner = panel1;
ss.Size = new Size(width, height);
ss.Play();
ss.Stop();
}
I'm searching about this and I found some solutions on StackOverflow:
- Mixed Mode Error when building in Release Mode
- Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot
- Mixed mode assembly is built against version 'v1.1.4322'
But I don't know how to fix this error so any one have another solution or can explain any one of these. If it required editing a file, please let me know where this file is located.
Thank's a lot