c# - 无法加载 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
解决方案
推荐阅读
- django - django-elasticsearch-dsl 建议不工作
- rust - 如何更正 sdl2::render::Canvas 上的错误“类型参数数量错误:预期 1,找到 0”
- java - EMV 外部验证命令返回 6982
- python - 如何计算该模型的准确度
- entity-framework-core - 为什么选择实体框架核心”
名称”超过“Id”作为主键列? - javascript - 如何在本机反应中制作没有自动播放的轮播
- elasticsearch - Elasticsearch - 添加节点而不复制?
- ios - 自定义导航栏后退按钮标题
- java - 在 HashMap 中加载文件时出现 Java 堆内存问题
- .htaccess - .htaccess 相同单词的重写规则