Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: ImageMagick.NET - Failed to load embedded x64 assembly

$
0
0
Hi,
Some users got similar error
so I have added this right after Initialization:
If (IsDirectoryWritable(Path.GetTempPath())) 
    MagickAnyCPU.CacheDirectory=Path.GetTempPath();
else 
{   
    string exepath = System.Reflection.Assembly.GetEntryAssembly().Location;
    var CachePath = Path.Combine(exepath, "Cache");
    if (!Directory.Exists(CachePath)) 
        Directory.CreateDirectory(CachePath);
    MagickAnyCPU.CacheDirectory=CachePath;
}
but I still receive crash reports:
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'XX' that matches the specified binding constraints threw an exception. ---> System.InvalidOperationException: Failed to load embedded x64 assembly: unable to load file "C:\Users\james\AppData\Local\Temp\Magick.NET.7.0.0.0008\Magick.NET-Q16-x64.dll" ---> System.IO.FileNotFoundException: Could not load file or assembly 'Magick.NET-Q16-x64.dll' or one of its dependencies.
Can you please advise a solution?

Viewing all articles
Browse latest Browse all 3693

Trending Articles