1
我試圖做一個簡單的視頻播放器所以我不會使用混合模式組件構建針對運行時的版本「V1.1.4322」,不能在運行時的4.0
Microsoft.DirectX.AudioVideoPlayback加載.DLL
,但是當我使用這個dll文件PROGRAME提出這個錯誤
混合模式組件對 運行時的版本「V1.1.4322」建成並不能在4.0運行時加載不額外的 配置信息。
之前打開文件對話框出現 在此代碼
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();
}
我在尋找這件事,我發現在計算器上的一些解決方案:
- 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'
但我不知道如何解決這個錯誤,所以任何人都有另一種解決方案或可以解釋其中的任何一個。如果需要編輯文件,請告訴我這個文件的位置。
感謝的很多
我在哪裏可以找到App.config文件。 你能給我的路徑 – BlackRoot 2012-08-06 23:17:03
它應該在你的Windows應用程序項目..如果它不知何故不存在你可以隨時添加它自己。只需按該名稱創建一個文件,將其放置在項目的根文件夾中,然後粘貼上面的XML。 – 2012-08-07 11:33:28