-- ::, 线程ID:[] 日志级别:ERROR 出错类:WebApp.HttpGlobalExceptionFilter property:[(null)] - 错误描述:System.TypeInitializationException: The type initializer for 'System.DrawingCore.GDIPlus' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'gdiplus' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgdiplus: cannot open shared object file: No such file or directory
at System.DrawingCore.GDIPlus.GdiplusStartup(UInt64& token, GdiplusStartupInput& input, GdiplusStartupOutput& output)
at System.DrawingCore.GDIPlus..cctor()
--- End of inner exception stack trace ---
at System.DrawingCore.GDIPlus.GdipGetGenericFontFamilySansSerif(IntPtr& fontFamily)
at System.DrawingCore.FontFamily..ctor(GenericFontFamilies genericFamily)
at System.DrawingCore.FontFamily.get_GenericSansSerif()
at System.DrawingCore.Font.CreateFont(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical)
at Common.VerifyCodeHelper.CreateByteByImgVerifyCode(String verifyCode, Int32 width, Int32 height) in F:\src\WebApp\Common\VerifyCodeHelper.cs:line
at WebApp.Controllers.VerifyCodeController.NumberVerifyCode() in F:\src\WebApp\Controllers\VerifyCodeController.cs:line
at lambda_method(Closure , Object , Object[] )
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()

解决方法

Centos 7

yum install libgdiplus-devel

最新文章

  1. jq选择器基础
  2. 解决Python中不能输入汉字的问题
  3. DevExpress GridControl使用方法
  4. 【dom4j xml】使用dom4j处理XML文件--测试过程遇到的问题
  5. MicroERP数据初始化SQL脚本
  6. CodePage代码,MultiByteToWideChar
  7. ASP.NET MVC Identity 添加角色
  8. Android AlertDialog更改标题颜色,字体等
  9. javascript实现Map
  10. 5月,专用程序猿的经典大作——APUE
  11. ionic入门之色彩、图标和边距和界面组件:列表
  12. GitHub使用(一) - 新建个人网站
  13. Trie树/字典树题目(2017今日头条笔试题:异或)
  14. Hibernate的条件查询的几种方式
  15. vfd折腾(二)
  16. 如何使用FluentMigrator进行数据库迁移
  17. hashMap的hashCode() 和equal()的使用
  18. JavaScript鼠标拖动div且可调整div大小
  19. keras 实现人工神经网络
  20. Codeforces Round #419 (Div. 2) B. Karen and Coffee

热门文章

  1. color2gray 的实现
  2. 常见的面试C#技术题目
  3. WIN10+QT5.9+VS2015编译RedisDesktopManager
  4. yii2 实现无极限分类
  5. Qt控件焦点切换
  6. windown下linux子系统的安装和卸载
  7. 给WPF示例图形加上方便查看大小的格子之完善版本
  8. string操作
  9. BZOJ 1483 HNOI2009 梦幻布丁 名单+启示录式的合并
  10. thinkphp3.2定义多模块并设置默认模块