.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.异常相关推荐

  1. .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 ...

  2. .net Core 在 CentOS7下,报The type initializer for 'Gdip' threw an exception.异常

    .net Core允许在 Centos7 上,使用 System.Draw.Common类库时,报以下错误: "Class":"System.TypeInitializa ...

  3. .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 ...

  4. 解决: linux Centos8 在.netCore生成验证码图片报:The type initializer for ‘Gdip‘ threw an exception.

    1.前言(可不看) 绘画验证码图片我用了微软提供的System.Drawing.Common.System.Drawing.Common组件是依赖于GDI+的,然而linux上没有GDI+.所以可以安 ...

  5. 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 的 ...

  6. .net Core 6.0 部署到欧拉(Linux)系统上,“The type initializer for ‘Gdip‘ threw an exception” 报错的解决方案

    前言 "The type initializer for 'Gdip' threw an exception" 报错的根本原因, 是因为我们使用了"System.Draw ...

  7. 记一次.Net Core通过GDI+在CentOS 7(Docker)环境中绘图报错The type initializer for ‘Gdip‘ threw an exception的问题及处理方式

    今天在Docker环境布置项目,在登录页面中有一个功能就是需要后端动态绘制一个验证码图片,防止前端通过机器或爬虫工具模拟自动登录. 在开发机器上(windows10)调试正常,但是部署到centos7 ...

  8. 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

  9. net core站点部署到ubuntu,错误信息System.TypeInitializationException: The type initializer for 'Gdip' threw an

    问题 aspNetCore 使用验证码,unbuntu部署报错 ystem.TypeInitializationException: The type initializer for 'Gdip' t ...

最新文章

  1. 2D图像转3D仅需5秒,特斯拉的自动驾驶技术有救了?
  2. net-tools 要被 iproute2 取代了
  3. Hyperledger Fabric 1.0 实例简析 第一课 network_setup.sh分析
  4. linux+android4.2键值关系,Android4.0 添加一个新的Android 键值
  5. C# .net web.config配置access连接字符串
  6. LLVM与Codegen技术
  7. C语言 if的条件相关
  8. zookeeper中展示所有节点_分布式协调服务之Zookeeper
  9. 【转载】dotnet 线程同步
  10. jQuery插件:Tiny Scrollbar滚动条插件(滚动条美化、默认滚动条)
  11. FastAPI集成SQLAlchemy实现数据库操作
  12. 在python中、下列代码的输出是什么-智慧树知到《Python程序设计基础》章节测试答案...
  13. 2019ug最新版本是多少_UG NX 2019下载 Siemens NX 1867 Build 3801完整版+Update升级包 Win64 多语中文版(含安装步骤) 下载-脚本之家...
  14. vs2017下载教程
  15. 《SVN web管理工具CollabNetSubversionEdge》
  16. SAS更新sid的方法,简单有效,sid最新可到2022年3月
  17. Mac Excel 次坐标轴/双坐标轴/柱状图+折线图
  18. 【渝粤题库】广东开放大学 服务质量管理 形成性考核
  19. php7从入门到入坟,《在对家的坟头做直播》
  20. ITIL工具系列之Tivoli

热门文章

  1. 微软等数据结构+算法面试100题全部答案完整亮相
  2. 手把手教你 VMware安装Kali Linux(超详细)
  3. 安科瑞变电站综合自动化系统在安庆市静脉产业园应用
  4. 在multisim14上完成数码管的显示(0-9)
  5. selenium基础八种元素定位
  6. 纪念-收到华为技术有限公司的正式录用通知
  7. oracle 的SGA与PGA分析
  8. JAVA中的->是什么意思?
  9. boost::asio中文文档
  10. APS选型时需要考虑哪些因素?