首页 > 解决方案 > 无法加载 DLL 'Magick.NET-Q16-x86.Native.dll':找不到指定的模块

问题描述

当我在 Visual Studio 中运行项目时,Magick.NET v7.14.0.2工作正常,但在 Windows 服务器上部署时,会出现错误:

无法加载 DLL 'Magick.NET-Q16-x86.Native.dll':找不到指定的模块。(来自 HRESULT 的异常:0x8007007E)

完全例外:

System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.NET-Q16-x86.Native.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at ImageMagick.Environment.NativeMethods.X86.Environment_Initialize() at ImageMagick.Environment.Initialize() at ImageMagick.MagickSettings.NativeMagickSettings..cctor() --- End of inner exception stack trace --- at ImageMagick.MagickSettings.NativeMagickSettings..ctor() at ImageMagick.MagickSettings..ctor() at ImageMagick.MagickImage..ctor() at projectname.controllername

标签: c#magick.net

解决方案


推荐阅读