Try verifying if you have the latest libgdiplus installed. The installer is available in the mono-project download page.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, October 25, 2007 2:37 PM To: [email protected] Subject: [Mono-winforms-list] running a winform .exe Hello, I'm new to this mailing list, I try to run a helloMono.exe which I designed in Visual C#. It is composed only by a main Form, a label and a button. I succeded in compiling it with the command: gmcs -r:System.Data -r:System.Drawing -r:System.Windows.Forms -out:helloMono.exe *.cs to have a helloMono.exe but when I try to run it with: mono helloMono.exe I have lots of error messages: Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOut put&) at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner exception stack trace --- at <0x00000> <unknown method> at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000] at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] at System.Windows.Forms.XplatUIX11..ctor () [0x00000] at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] at System.Windows.Forms.XplatUI..cctor () [0x00000] --- End of inner exception stack trace --- at <0x00000> <unknown method> at System.Windows.Forms.Application.EnableVisualStyles () [0x00000] at helloMono.Program.Main () [0x00000] I've put a symbolic link libgdiplus.so -> ~/mono-1.2.5.1/lib/libgdiplus.so* but it's the same error.... >ldconfig -p |grep libgdiplus libgdiplus.so.0 (libc6) => ~/mono-1.2.5.1/lib/libgdiplus.so.0 libgdiplus.so (libc6) => ~/mono-1.2.5.1/lib/libgdiplus.so Any clue? -- _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list -- Visit us at http://www.2pirad.com/ -- _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
