System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.
2024-08-27 08:46:50
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`.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)
安装 libgdiplus
同样的问题 https://github.com/dotnet/corefx/issues/25157
解决方法: https://q.cnblogs.com/q/103863/
解决方法: https://q.cnblogs.com/q/107946/
最新文章
- HDU 1285 确定比赛名次 拓扑排序模板题
- bootstrap-5
- 转载:使用命令行启动VirtualBox虚拟机
- mysql提示2002错误的解决方法
- java动态加载类和静态加载类笔记
- Pycharm 使用 (一)
- CSS Sprites图片处理
- Asp.Net+Extjs实现登录
- mysql数据库问答
- Java 中UDP原理机制及实现方式介绍(建议阅读者阅读前了解下Java的基础知识,一方便理解)
- Android界面刷新方法
- 写代码质量改善java计划151建议——导航开始
- selenium测试(Java)-- 显式等待(九)
- css点滴1—八种方式实现元素垂直居中
- 干货分享:vue2.0做移动端开发用到的相关插件和经验总结(2)
- .net中几个经常用到的字符串的截取
- Android开发中adb命令的常用方法
- 网页不能显示PNG验证码的解决办法
- 在centos上安装smplayer播放器
- 一个简单python爬虫的实现——爬取电影信息
热门文章
- Linux:Gentoo系统的安装笔记(三)
- L362 When to Bring up Salary During the Job Interview Process
- 剑指Offer 60. 把二叉树打印成多行 (二叉树)
- 周强 201771010141《面对对象程序设计(java)》第十周学习总结
- session的部分理解
- 浅谈在java中list集合的排序问题
- WPF: 在ListView中添加Checkbox列表
- Python多进程并发(multiprocessing)
- 往redis中存储数据是利用pipeline方法
- 在Eclipse中使用版本管理工具SVN