首页 > Windows开发 > 详细

The type initializer for 'System.DrawingCore.GDIPlus' threw an exception

时间:2019-03-10 10:55:27      阅读:342      评论:0      收藏:0      [点我收藏+]

Asp.net core 2.1发布后支持System.Drawing.Common绘图,可以做一些图片验证码之类的功能,应用程序在Windows上运行功能正常,但是部署到centos上就会报错:

The type initializer for ‘System.DrawingCore.GDIPlus‘ threw an exception;

解决办法:

centos上安装libgdiplus-devel;

命令如下:yum install libgdiplus-devel 安装完成后即可解决上面问题

The type initializer for 'System.DrawingCore.GDIPlus' threw an exception

原文:https://www.cnblogs.com/qingfenglin/p/10504400.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!