0

I'm trying to get a gif in a WPF window. Within the designer its loaded, it's even animated.

But whenever I build and start the application

FileNotFoundException: Could not load file or assembly 'WpfAnimatedGif, PublicKeyToken=9e7cd3b544a090dc' or one of its dependencies. The system cannot find the file specified.

It's a Packaged I downloaded, the reference is set to copy local = true. I also tried false but it didn't work. Tried rebuilding it and building it on other x64 and 'any CPU

Can't seem to figure it out. Any help is welcome

Stefan
  • 121
  • 2
  • 12
  • Use tips in posts with similar error (e.g. [here](https://stackoverflow.com/q/10878602/1997232) is one) to find out what is missing. – Sinatr Jul 10 '20 at 14:04
  • Is there a `WpfAnimatedGif.dll` in the output folder at runtime? – mm8 Jul 10 '20 at 14:13
  • Yes there is. Naming also checked out. – Stefan Jul 10 '20 at 14:16
  • That post didn't solve it. The dependencywalker is for windows 2003 so doesn't work. Rest of them did not help. I'm quite lost with dependencies etc – Stefan Jul 10 '20 at 14:43
  • I tested the NuGet package on a sample project and it worked fine. Did you install the NuGet package, or did you set the reference some other way? Also, have you tried closing and restarting Visual Studio? – Keithernet Jul 10 '20 at 18:50
  • I downloaded it from nuget package. And i also tries restarting visual studio. – Stefan Jul 10 '20 at 20:34

0 Answers0