System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.

netcore 使用System.Drawing 出现如下错误:

Unhandled Exception: System.TypeInitializationException: The type initializer for ‘Gdip‘ threw an exception. ---> System.DllNotFoundException: Unable to load DLL ‘libgdiplus‘: The specified module could not be found.
   at System.Runtime.InteropServices.FunctionWrapper`1.get_Delegate()
   at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)
   at System.Drawing.SafeNativeMethods.Gdip..cctor()
   --- End of inner exception stack trace ---
   at System.Drawing.SafeNativeMethods.Gdip.GdipLoadImageFromFile(String filename, IntPtr& image)
   at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
   at System.Drawing.Image.FromFile(String filename)

  同样的问题 https://github.com/dotnet/corefx/issues/25157

解决方法: https://q.cnblogs.com/q/103863/

System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.

原文地址:https://www.cnblogs.com/xiaoyu369/p/9819608.html

时间: 2024-10-09 19:46:17

System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.的相关文章

Unhandled Exception:System.DllNotFoundException: Unable to load DLL"**"

在项目中使用C#代码调用C++ DLL时.常常会出现这个问题:在开发者自己的电脑上运行没有问题,但是部署到客户电脑上时会出现下面问题: Unhandled Exception:System.DllNotFoundException: Unable to load DLL"**":找不到指定的模块. 出现这个问题的原因:一般是该客户电脑上缺少该DLL的依赖项.一般来说比较常见的缺少项是msvcr1200.dll msvcp1200.dll.具体缺少什么,需要使用Dependency Wa

System.DllNotFoundException: Unable to load shared library 'libdl' or one of its dependencies .NET Core 图片操作在 Linux/Docker 下的坑

#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443 RUN echo "deb ht

[ASP.NET 5]终于解决:Unable to load DLL 'api-ms-win-core-localization-obsolete-l1-2-0.dll'

11月12日,惊喜地发现SqlClient(System.Data.SqlClient.dll)跨平台了(对应的nuget包包是runtime.unix.System.Data.SqlClient),终于可以在Linux上基于.NET Core运行ASP.NET 5程序访问SQL Server数据库了. 于是,立马更新dnx至rc2,用之前已经写好的.用EF7访问SQL Server数据库的ASP.NET 5示例程序,分别在2台Linux服务器上进行测试.但测试时遇到了一个非常奇怪的问题:其中1

Unable to load DLL "libzmq";不能够加载“libzmq”

Unable to load DLL "libzmq" Local,you can read the follow word PS, I found the solution to solve my error. When downloading ZeroMQ from NuGet in VS, there is actually a warning that I ignored at first. It says to manually copy libzmq.dll to outp

解决 Unable to load DLL 'OraOps9.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)

这个问题网上的答案是把oracle的home文件夹权限变为完全控制,然而并没有好用,还有一种方法是在编写的程序的config文件加入 <runtime> <legacyCorruptedStateExceptionsPolicy enabled="true"/> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly>

[转]System.DllNotFoundException: 无法加载 DLL“*.dll”: 内存位置访问无效。 (异常来自 HRESULT:0x800703E6)

我在使用地税发票控件进行开票的测试的时候,在xp上测试时正常的,在别人的win7系统测试也是正常,但我在我本机确不正常.我本机装的是msdn版本win7系统,这个系统比较原装. 错误信息如下: 2012-07-21 06:30:08,546 [1] ERROR - ThreadException caught System.DllNotFoundException: 无法加载 DLL"GdltaxIA.dll": 内存位置访问无效. (异常来自 HRESULT:0x800703E6).

Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: Unable to load library &#39;dll.msvcrt&#39;

上网找了一下方法,说是jdk64的问题,也有说是路径不对问题. 代码片段 1 public interface CLibrary extends Library { 2 CLibrary INSTANCE = (CLibrary) Native.loadLibrary("dll.msvcrt", 3 CLibrary.class); 4 void printf(String format, Object... args); 5 } 在看到以下文章之后,觉得loadLibrary()加载

运行Virtualbox去安装系统时出错:Failed to open a session for the virtual machine,Unable to load R3 module xxxx/VBoxDD.DLL(VBoxDD)

貌似看到不少人(1,2,3),在使用Virtualbox去安装系统时,都遇到这个错误: 比如这里遇到的: 截图: 和另外这里的截图: 加文字描述: Failed to open a session for the virtual machine windows XP. Unable to load R3 module D:\C语言\New Folder/VBoxDD.DLL (VBoxDD): GetLastError=126 (VERR_MODULE_NOT_FOUND). Result Co

解决Unable to load R3 module ...VBoxDD.dll (VBoxDD):GetLastError=1790

我的当前环境是:win7 64 virtualbox:4.3.20 r96996 错误: Unable to load R3 module D:\Program Files\Oracle\VirtualBox/VBoxDD.dll(VBoxDD):GetLastError=1790(VERR_UNRESOLVED_ERROR) 解决方法:恢复系统主题文件就好了.恢复方法提供下载: 参考了这位朋友的文章: http://blog.csdn.net/friendan/article/details/