[Mono-list] help error:FontFamily could not be found

Дмитрий Глинник dglinnik at foxtelecom.ru
Sun Jan 20 06:48:56 EST 2008


Hello!

I installed mono-1.2.6-gtksharp-2.10.2-win32-4 on ubuntu 7.10.

I try to run a win program and have problem:


Unhandled Exception: System.TypeInitializationException: An exception 
was thrown by the type initializer for EDealer.Globals ---> 
System.ArgumentException: The requested *FontFamily could not be found* 
[GDI+ status: FontFamilyNotFound]

at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]

at System.Drawing.FontFamily..ctor (GenericFontFamilies genericFamily) 
[0x00000]

at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor 
(System.Drawing.Text.GenericFontFamilies)

at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000]

at System.Drawing.Font.CreateFont (System.String familyName, Single 
emSize, FontStyle style, GraphicsUnit unit, Byte charSet, Boolean 
isVertical) [0x00000]

at System.Drawing.Font..ctor (System.String familyName, Single emSize, 
FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) 
[0x00000]

at System.Drawing.Font..ctor (System.String familyName, Single emSize, 
FontStyle style, GraphicsUnit unit, Byte charSet) [0x00000]

at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor 
(string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte)

at EDealer.Globals..cctor () [0x00000] --- End of inner exception stack 
trace




More information about the Mono-list mailing list