原文:Centos 部署 .net core The type initializer for 'System.DrawingCore.GDIPlus' threw an exception

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

2019-05-07 10:36 2 396 推荐指数:

查看详情

the type initializer for '' threw an exception

the type initializer for '' threw an exception 问题:程序启动时初始化主窗口类时,弹出该错误。 调查:查看类的构造函数是否会有异常抛出。 解决:去掉类的构造函数中可能出现的异常 ...

Sat Aug 10 19:20:00 CST 2013 0 21660
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM