.net Core 2.1 在 CentOS7下,运行含图片处理时发生异常,报The type initializer for ‘Gdip‘ threw an exception.异常
运行含图片处理时发生异常:
The type initializer for 'Gdip' threw an exception.
解决方法:
一、安装一下包:
yum -y install autoconf automake libtool
yum -y install freetype-devel fontconfig libXft-devel
yum -y install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel
yum -y install glib2-devel cairo-devel
yum -y install mlocate
git clone https://github.com/mono/libgdiplus
cd libgdiplus
./autogen.sh
make
make install
二、创建符号链接:
ln -s /usr/local/lib/libgdiplus.so /usr/lib64/libgdiplus.so
ln -s /usr/local/lib/libgdiplus.so /usr/libgdiplus.so
三、更新一下库:
updatedb
.net Core 2.1 在 CentOS7下,运行含图片处理时发生异常,报The type initializer for ‘Gdip‘ threw an exception.异常相关推荐
- .net Core 在 CentOS7下,报The type initializer for ‘Gdip‘ threw an exception.异常
.net Core 在 CentOS7下,报The type initializer for 'Gdip' threw an exception.异常 参考文章: (1).net Core 在 Cen ...
- .net core linux环境下导出到excel报The type initializer for ‘Gdip‘ threw an exception.异常
.net core linux环境下导出到excel报The type initializer for 'Gdip' threw an exception.异常 一.安装一下包: yum -y ins ...
- .net Core 在 CentOS7下,报The type initializer for 'Gdip' threw an exception.异常
.net Core允许在 Centos7 上,使用 System.Draw.Common类库时,报以下错误: "Class":"System.TypeInitializa ...
- ASP.Net Core The type initializer for 'Gdip' threw an exception
ASP.NET Core项目部署在Linux下可能会出现GDI错误 The type initializer for 'Gdip' threw an exception 解决方案:创建 libdl 的 ...
- 记一次.Net Core通过GDI+在CentOS 7(Docker)环境中绘图报错The type initializer for ‘Gdip‘ threw an exception的问题及处理方式
今天在Docker环境布置项目,在登录页面中有一个功能就是需要后端动态绘制一个验证码图片,防止前端通过机器或爬虫工具模拟自动登录. 在开发机器上(windows10)调试正常,但是部署到centos7 ...
- .net Core 6.0 部署到欧拉(Linux)系统上,“The type initializer for ‘Gdip‘ threw an exception” 报错的解决方案
前言 "The type initializer for 'Gdip' threw an exception" 报错的根本原因, 是因为我们使用了"System.Draw ...
- net core站点部署到ubuntu,错误信息System.TypeInitializationException: The type initializer for 'Gdip' threw an
问题 aspNetCore 使用验证码,unbuntu部署报错 ystem.TypeInitializationException: The type initializer for 'Gdip' t ...
- .Net Core通过NPOI在CentOS 7(Docker)环境中导出Excel报错The type initializer for ‘Gdip‘ 的问题
一.前言 今天在AspNetCore5.0环境中做了一个导出Excel的功能,在开发机器上(windows10)调试正常,但是部署到centos7容器(容器基础环境mcr.microsoft.com/ ...
- Windows下运行rabbitmqctl 相关命令(如rabbitmqctl stop)报错:Error: unable to perform an operation on node解决方案
Windows下运行rabbitmqctl 相关命令(如rabbitmqctl stop)报错:Error: unable to perform an operation on node解决方案 参考 ...
最新文章
- iOS三种录制视频方式详细对比
- 日志规范之为什么要使用SLF4J
- CodeForces - 1189B Number Circle
- git clone 之前,是否需要先 git init
- 原来蒋先生才是中国互联网启蒙第一人!
- 什么是结构体【详解】
- COSCon'20 Apache Roadshow- China 精彩收官!|城市回顾篇
- when函数c语言,when表达式
- Linux:使用upower命令查看电池信息
- 七夕送什么蓝牙耳机?时尚好用的蓝牙耳机推荐
- ICPR 2020|大规模商品图像识别挑战赛冠军技术干货分享
- 程序的可维护性和可扩展性
- 金蝶EAS客户端配置更换
- 高效学习-笔记-左耳听风
- 在华为工作2年收入5千!,打算跳槽,出去面试还要掉薪,真是废了
- iconfont-阿里图标库 的使用
- 真香 用这七大Python效率工具
- mysql 受影响行数_关于受影响行数的详细介绍
- python数据分析与挖掘实战 配套资源_[课程学习]Python数据分析与挖掘实战 配套完整数据和源代码 rar文件[25.46MB]-码姐姐下载...
- Object的各个方法的文档
热门文章
- 《精通Unix下C语言与项目实践》读书笔记(3)
- 微信好友头像无法显示的问题
- vue-map高德地图(1)输入坐标显示位置(组件封装)
- 活动集锦|3月腾讯企业微信、泛微联合产品体验会走进23座城市
- Mysql的两阶段锁协议
- Pandas两重山之Series(索引)
- java执行CMD命令,文件路径或文件名带空格处理
- Caused by: java.lang.NoClassDefFoundError: org/apache/curator/shaded/com/google/common/collect/Maps
- Go语言实现AI五子棋智能算法
- 浙江省台州电子学籍系统服务器,浙江省中小学学生电子学籍系统使用说明