【问题标题】:"An attempt was made to load a program with an incorrect format"“试图加载格式不正确的程序”
【发布时间】:2014-01-11 10:53:58
【问题描述】:

我在 Visual Studio 2008 工作,运行程序时显示此错误:

$exception {"无法加载文件或程序集'AForge.Video.FFMPEG, Version=2.2.5.0,Culture=neutral,PublicKeyToken=03563089b1be05dd' 或其依赖项之一。试图加载格式不正确的程序。"}

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 AForge.Video.FFMPEG;

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

        private void button1_Click(object sender, EventArgs e)
        {
            VideoFileReader video = new VideoFileReader();
        }
    }
}

我的程序有什么问题?

【问题讨论】:

    标签: c# linq video ffmpeg


    【解决方案1】:

    这通常是尝试在 x64 系统上加载 x86 二进制文件的结果(反之亦然)。检查您的程序是否正在编译为与您正在使用的二进制文件相同的目标(在本例中为 AForge.Video.FFMPEG)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-17
      • 2012-05-01
      • 2014-02-10
      • 2015-10-13
      • 1970-01-01
      • 2012-11-02
      • 2019-01-14
      • 1970-01-01
      相关资源
      最近更新 更多