.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 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 GitHub - mono/libgdiplus: C-based implementation of the GDI+ API
cd libgdiplus
./autogen.sh(无权限时执行 chmod 777 ./autogen.sh)
make(出现make: *** No targets specified and no makefile found. Stop时执行:yum install gcc、yum install gcc gcc-c++ gcc-g77)
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 linux环境下导出到excel报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 在 CentOS7下,报The type initializer for 'Gdip' threw an exception.异常
.net Core允许在 Centos7 上,使用 System.Draw.Common类库时,报以下错误: "Class":"System.TypeInitializa ...
- .net Core 2.1 在 CentOS7下,运行含图片处理时发生异常,报The type initializer for ‘Gdip‘ threw an exception.异常
运行含图片处理时发生异常: The type initializer for 'Gdip' threw an exception. 解决方法: 一.安装一下包: yum -y install auto ...
- 解决: linux Centos8 在.netCore生成验证码图片报:The type initializer for ‘Gdip‘ threw an exception.
1.前言(可不看) 绘画验证码图片我用了微软提供的System.Drawing.Common.System.Drawing.Common组件是依赖于GDI+的,然而linux上没有GDI+.所以可以安 ...
- 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 6.0 部署到欧拉(Linux)系统上,“The type initializer for ‘Gdip‘ threw an exception” 报错的解决方案
前言 "The type initializer for 'Gdip' threw an exception" 报错的根本原因, 是因为我们使用了"System.Draw ...
- 记一次.Net Core通过GDI+在CentOS 7(Docker)环境中绘图报错The type initializer for ‘Gdip‘ threw an exception的问题及处理方式
今天在Docker环境布置项目,在登录页面中有一个功能就是需要后端动态绘制一个验证码图片,防止前端通过机器或爬虫工具模拟自动登录. 在开发机器上(windows10)调试正常,但是部署到centos7 ...
- mysql 在linux环境下导出,window下导入报ASCII '\0' appeared in the statement
mysql --binary-mode=1 -hIP -uUSER -pPWD -PPORT sql>use database; sql>source /PATH/tbl.sql
- net core站点部署到ubuntu,错误信息System.TypeInitializationException: The type initializer for 'Gdip' threw an
问题 aspNetCore 使用验证码,unbuntu部署报错 ystem.TypeInitializationException: The type initializer for 'Gdip' t ...
最新文章
- 2D图像转3D仅需5秒,特斯拉的自动驾驶技术有救了?
- net-tools 要被 iproute2 取代了
- Hyperledger Fabric 1.0 实例简析 第一课 network_setup.sh分析
- linux+android4.2键值关系,Android4.0 添加一个新的Android 键值
- C# .net web.config配置access连接字符串
- LLVM与Codegen技术
- C语言 if的条件相关
- zookeeper中展示所有节点_分布式协调服务之Zookeeper
- 【转载】dotnet 线程同步
- jQuery插件:Tiny Scrollbar滚动条插件(滚动条美化、默认滚动条)
- FastAPI集成SQLAlchemy实现数据库操作
- 在python中、下列代码的输出是什么-智慧树知到《Python程序设计基础》章节测试答案...
- 2019ug最新版本是多少_UG NX 2019下载 Siemens NX 1867 Build 3801完整版+Update升级包 Win64 多语中文版(含安装步骤) 下载-脚本之家...
- vs2017下载教程
- 《SVN web管理工具CollabNetSubversionEdge》
- SAS更新sid的方法,简单有效,sid最新可到2022年3月
- Mac Excel 次坐标轴/双坐标轴/柱状图+折线图
- 【渝粤题库】广东开放大学 服务质量管理 形成性考核
- php7从入门到入坟,《在对家的坟头做直播》
- ITIL工具系列之Tivoli