mono+jexus 验证码不显示:System.Drawing

时间:2022-09-11 15:40:15

System.ArgumentException

The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]

Description: HTTP 500.Error processing request.

Details: Non-web exception. Exception origin (name of application or object): System.Drawing.

Exception stack trace:
at System.Drawing.GDIPlus.CheckStatus (Status status) <0x4083e570 + 0x00813> in <filename unknown>:0 at System.Drawing.FontFamily..ctor (GenericFontFamilies genericFamily) <0x40843a70 + 0x000af> in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (System.Drawing.Text.GenericFontFamilies) at System.Drawing.FontFamily.get_GenericSansSerif () <0x408439c0 + 0x00027> in <filename unknown>:0 at System.Drawing.Font.CreateFont (System.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) <0x40843200 + 0x000cf> in <filename unknown>:0 at System.Drawing.Font..ctor (System.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) <0x40843170 + 0x00073> in <filename unknown>:0 at System.Drawing.Font..ctor (System.String familyName, Single emSize, FontStyle style) <0x40843110 + 0x00047> in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) at BLL.validatedCode.CreateImageCode (System.String code) <0x40841680 + 0x003b3> in <filename unknown>:0 at BLL.validatedCode.CreateImageOnPage (System.String code, System.Web.HttpContext context) <0x408414e0 + 0x00057> in <filename unknown>:0 at Web.code.Page_Load (System.Object sender, System.EventArgs e) <0x40840570 + 0x00087> in <filename unknown>:0 at System.Web.UI.Control.OnLoad (System.EventArgs e) <0x412fed10 + 0x00079> in <filename unknown>:0 at System.Web.UI.Control.LoadRecursive () <0x412fec00 + 0x00083> in <filename unknown>:0 at System.Web.UI.Page.ProcessLoad () <0x412fea80 + 0x000a3> in <filename unknown>:0 at System.Web.UI.Page.ProcessPostData () <0x412fe940 + 0x00093> in <filename unknown>:0 at System.Web.UI.Page.InternalProcessRequest () <0x412fc000 + 0x0048f> in <filename unknown>:0 at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) <0x412f7870 + 0x001f3> in <filename unknown>:0
Version Information: 4.2.3 (Stable 4.2.3.4/832de4b Tue Mar 15 11:39:54 EDT 2016); ASP.NET Version: 4.0.30319.17020
 
 安装字体:
yum install -y dejavu-fonts-common dejavu-lgc-sans-mono-fonts