Could not load file or assembly #39;Magick.NET-x86.DLL#39; or one of its dependencies(无法加载文件或程序集“Magick.NET-x86.DLL或其依赖项之一)
问题描述
我使用了 Magick.NET,它是 ImageMagick 的 .NET 包装器,它会在客户端计算机上引发上述错误.不过,它在我的机器上运行良好.我还没有安装 ImageMagick,所以我根本无法理解我需要在客户端机器上做什么.我已经安装了 VS 2012.
I have used Magick.NET which is a .NET wrapper for ImageMagick, and it throws the above error on a client machine. It works fine on my machine though. I have not installed ImageMagick so I simply can't understand what I need to do on a client machine. I have VS 2012 installed.
此外,Magick.NET 在其中包含 ImageMagick,我认为它使用 C++/CLI 并向本机 ImageMagick 公开一个 .NET 接口,所有这些都在单个 DLL 中.那么它需要什么DLL呢?
Also, Magick.NET includes ImageMagick within it, I think it uses C++/CLI and exposes a .NET interface to the native ImageMagick, all within a single DLL. So what DLL does it need?
(我刚刚遇到这个错误,所以发布了我找到的解决方案.)
(I just came across this error so posting the solution I found.)
推荐答案
Magick.NET 需要 VC 2012 Runtime 已安装,Magick.NET V7+ (.NET 4.0) 需要 2012 和 VC 2015 运行时已安装.下载并安装在客户端机器上.如果它弹出一个修复或卸载"对话框,那么它已经安装,你可能缺少另一个依赖项.如果没有,请安装 VCR 并重新启动您的应用.
Magick.NET needs the VC 2012 Runtime installed, and Magick.NET V7+ (.NET 4.0) needs 2012 and the VC 2015 Runtime installed. Download and install on client machine. If it pops up a "repair or uninstall" dialog then its already installed and you might be missing another dependency. If not, install VCR and restart your app.
这篇关于无法加载文件或程序集“Magick.NET-x86.DLL"或其依赖项之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法加载文件或程序集“Magick.NET-x86.DLL"或其
基础教程推荐
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- 将数据集转换为列表 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 从 C# 控制相机设备 2022-01-01
- 如果条件可以为空 2022-01-01
