Konnte nicht geladen oder assembly oder eine Ihrer Abhängigkeiten

Ich bin mit Aforge.net Rahmen für das handeln der Bildverarbeitung arbeiten.
Ich add 'AForge.Video.FFMPEG.dll' als Referenz zu meinem Projekt.
Ich bin mit VS2012 und 32-bit-build-Ziel.
Wenn Gebäude bekomme ich

 System.IO.FileNotFoundException was unhandled
  HResult=-2147024770
  Message=Could not load file or assembly 'AForge.Video.FFMPEG.dll' or one of its dependencies. The specified module could not be found.
  Source=VideoReadere
  FileName=AForge.Video.FFMPEG.dll
  FusionLog=""
  StackTrace:
       at VideoReadere.Form1..ctor()
       at VideoReadere.Program.Main() in c:\Users\Prabad\Documents\Visual Studio 2012\Projects\VideoReadere\VideoReadere\Program.cs:line 19
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

mein code für, die auftreten, Ausnahme

 using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace VideoReadere
{
    static class Program
    {
        ///<summary>
        ///The main entry point for the application.
        ///</summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
//here below line give exception
            Application.Run(new Form1());
        }
    }
}
  • Hat die AForge.Video.FFMPEG.dll existieren im Pfad für ausführbare Datei?
  • Sehen Sie ein gelbes Dreieck neben AForge.Video.FFMPEG.dll unter References Ordner im VS?
  • Wenn Sie Hinzugefügt haben, die Referenz korrekt, dann würde ich bezahlen Aufmerksamkeit auf diesen Teil der Fehlermeldung "oder eine seiner Abhängigkeiten". Haben Sie auch alle referenzierten DLLs, AForge.Video.FFMPEG.dll hängt davon ab.
  • Wie finde ich die Abhängigkeiten von AForge.Video.FFMPEG.dll
  • Gebrauch Abhängigkeit Walker aus und finden Sie Ihre Abhängigkeiten. Sie könnten download von dependencywalker.com
  • kopieren Sie die "C:\Program Files (x86)\AForge.NET\Framework\Externe Verweise\ffmpeg\bin\" die dll-Dateien in Ihrem Aforge.FFMPEG dll-Pfad. und dann lösen Sie die mixedmode-Fehler.

Schreibe einen Kommentar