1
votes

I'm using Accord.video.ffmpeg.x64. My project is built in x64 as well. It is a click once windows forms application. I installed accord through nuget. C++ redistributor is installed.

Everything works fine when I run the program from debug. But when I publish it and try to run it (on the same machine or any other machine) I get the error "could not load file or assembly 'accord.video.ffmpeg.x64.dll' or one of its dependencies."

Thank you for any help you can provide.

1
Maybe the library depends on another library and it can't find it. Try to open your application with the 64 bit version of dependencywalker. - Isma

1 Answers

2
votes

Install on the machine both

  • vc_redist-2015.x64.exe
  • vc_redist-2015.x86.exe

and copy all files from your Nuget packages folders

  • packages\Accord.Video.FFMPEG.x64.3.8.0\lib\net(Version)
  • packages\Accord.Video.FFMPEG.x64.3.8.0\build

to the installation folder of your application.