Hey, You must install libgdiplus to work with WinForms apps. You can get it from same page where you get mono sources.
Everaldo. On 5/3/07, Carlos Adriano Portes <[EMAIL PROTECTED]> wrote: > Hi people I need help with compiling mono preview (the latest) on > ubuntu 6.06.1, it compiles with no problem, the problem is when > executing binaries it shows the following message: > > 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.GdiplusStartupOutput&) > 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 Teste12.Program.Main () [0x00000] > [EMAIL PROTECTED]:~$ ldconfig -p | grep libgdiplus > libgdiplus.so.0 (libc6) => /usr/lib/libgdiplus.so.0 > libgdiplus.so (libc6) => /usr/lib/libgdiplus.so > [EMAIL PROTECTED]:~$ sudo ldconfig -p | grep libgdiplus > Password: > libgdiplus.so.0 (libc6) => /usr/lib/libgdiplus.so.0 > libgdiplus.so (libc6) => /usr/lib/libgdiplus.so > > But when compiling there is no error and bellow the messages of > ./configure --prefix=/usr > > mcs source: $(top_srcdir)/mcs > GC: included > TLS: __thread > SIGALTSTACK: no > Engine: Building and using the JIT > 2.0 Alpha: yes > JNI support: IKVM Native > libgdiplus: assumed to be installed > zlib: system zlib > > Is there something wrong? > _______________________________________________ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list