简体   繁体   English

无法加载文件或程序集“Magick.NET-x86.DLL”或其依赖项之一

[英]Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies

I have used Magick.NET which is a .NET wrapper for ImageMagick, and it throws the above error on a client machine. 我使用了Magick.NET,它是ImageMagick的.NET包装器,它会在客户端计算机上抛出上述错误。 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. 我没有安装ImageMagick所以我根本无法理解我在客户机上需要做什么。 I have VS 2012 installed. 我安装了VS 2012。

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. 此外,Magick.NET包含ImageMagick,我认为它使用C ++ / CLI并将.NET接口暴露给本机ImageMagick,所有这些都在一个DLL中。 So what DLL does it need? 那么它需要什么DLL呢?

(I just came across this error so posting the solution I found.) (我刚刚发现了这个错误,所以发布了我找到的解决方案。)

Magick.NET needs the VC 2012 Runtime installed, and Magick.NET V7+ (.NET 4.0) needs 2012 and the VC 2015 Runtime installed. Magick.NET需要安装VC 2012 Runtime ,而Magick.NET V7 +(.NET 4.0)需要安装2012和VC 2015 Runtime 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. 如果没有,请安装VCR并重新启动您的应用。

对我来说还需要一件事:在IIS应用程序池中 - >高级设置 - >启用32位应用程序

I have error 我有错误

System.TypeInitializationException: The type initializer for 'X86' threw an exception. ---> 
System.DllNotFoundException: Unable to load DLL 'Magick.NET-Q16-x86.Native.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Fix by set Application pool -> advanced settings -> Enable 32-Bit = false 应用程序池修复- >高级设置 - >启用32位= false

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集“ tesseract.dll”或其依赖项之一 - Could not load file or assembly 'tesseract.dll' or one of its dependencies 无法加载文件或程序集“ B.DLL”或其依赖项之一 - Could not load file or assembly 'B.DLL' or one of its dependencies 无法加载文件或程序集MyNunitTest.dll或其依赖项之一 - Could not load file or assembly MyNunitTest.dll or one of its dependencies 无法加载文件或程序集“CefSharp.dll”或其依赖项之一 - Could not load file or assembly 'CefSharp.dll' or one of its dependencies 无法加载文件或程序集“accord.video.ffmpeg.x64.dll”或其依赖项之一 - Could not load file or assembly 'accord.video.ffmpeg.x64.dll' or one of its dependencies 无法加载文件或程序集'quickfix_net.dll'或其依赖项之一 - could not load file or assembly 'quickfix_net.dll' or one of its dependencies 无法在ASP.NET网站中加载文件或程序集“ Jedox.Palo.Comm.DLL”或其依赖项之一 - Could not load file or assembly 'Jedox.Palo.Comm.DLL' or one of its dependencies in ASP.NET Website 无法加载文件或程序集log4net或其依赖项之一 - Could not load file or assembly log4net or one of its dependencies 无法加载文件或程序集“Elasticsearch.Net”或其依赖项之一 - Could not load file or assembly 'Elasticsearch.Net' or one of its dependencies 无法加载文件或程序集''或其依赖项之一 - Could not load file or assembly '' or one of its dependencies
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM