Using Microsoft.DirectX.AudioVideoPlayback in C#
<p>I have small problem with playing video in C#. To do that I want use DirectX, but I get same error as Is in <a href="http://stackoverflow.com/questions/4018924/mixed-mode-assembly-is-built-against-version-v1-1-4322">that question</a>. They suggest that he should add something to configuration file and it works for him, but I don't have any of that file. Why not and what I should do?
I'm creating windows form aplication.</p>

<p>my code:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.DirectX.AudioVideoPlayback;

namespace video2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string url = "video.flv";
            Video video = new Video(url);
            video.Owner = panel1;
            video.Play();
        }
    }
}
</code></pre>
