[Mono-list] Winform Error in Ubuntu

Willngton Roque willngton at gmail.com
Tue Jan 3 07:47:09 EST 2006


Hello


I try runing some WinForm app in Linux ( Mono 1.1.12 + Ubuntu 5.10) and
recive error...


the code.

using System.Windows.Forms;

public class exemplo1 : Form
{
    public static void Main()
    {
        Application.Run(new exemplo1());
    }
}


the error
== erro ao execultar mono exeplo1.exe

Unhandled Exception: System.TypeInitializationException: An exception was
thrown  by the type initializer for System.Windows.Forms.Form --->
System.Reflection.Ta rgetInvocationException: Exception has been thrown by
the target of an invocatio n. ---> System.TypeInitializationException: An
exception was thrown by the type initializer for System.Drawing.GDIPlus --->
System.DllNotFoundException: gdiplus .dll
in (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup(ulong&,Sys
tem.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
in <0x000fa> System.Drawing.GDIPlus:.cctor ()--- End of inner exception
stack tr ace ---

in <0x00000> <unknown method>
in <0x001a5> System.Drawing.Image:InitFromStream (System.IO.Stream stream)
in <0x00107> System.Drawing.Bitmap:.ctor (
System.Runtime.Serialization.Serializa tionInfo info, StreamingContext
context)
in <0x00000> <unknown method>
in (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke(obj ect,object[])
in <0x0008d> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFla gs invokeAttr, System.Reflection.Binder binder, System.Object[]
parameters, Syst em.Globalization.CultureInfo culture)--- End of inner
exception stack trace ---

in <0x0010e> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFla gs invokeAttr, System.Reflection.Binder binder, System.Object[]
parameters, Syst em.Globalization.CultureInfo culture)
in <0x0001a> System.Reflection.MethodBase:Invoke (System.Object obj,
System.Obje ct[] parameters)
in <0x0021b> System.Runtime.Serialization.ObjectRecord:LoadData (
System.Runtime. Serialization.ObjectManager manager, ISurrogateSelector
selector, StreamingConte xt context)
in <0x00110> System.Runtime.Serialization.ObjectManager:DoFixups ()
in <0x00042>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNex tObject
(System.IO.BinaryReader reader)
in <0x000b4>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObj ectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object resu lt,
System.Runtime.Remoting.Messaging.Header[] headers)
in <0x0011f>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:NoCheckDeserialize
(
System.IO.Stream serializationStream, System.Runtime.Remoting.Me
ssaging.HeaderHandler handler)
in <0x0000f>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Dese rialize
(System.IO.Stream serializationStream)
in <0x00035> System.Resources.ResourceReader:ReadNonPredefinedValue (
System.Type  exp_type)
in <0x00321> System.Resources.ResourceReader:ReadValueVer1 (System.Typetype)
in <0x0017b> System.Resources.ResourceReader:ResourceValue (Int32 index)
in <0x00028> System.Resources.ResourceReader+ResourceEnumerator:get_Value ()
in <0x0008c> System.Resources.ResourceSet:ReadResources ()
in <0x00049> System.Resources.ResourceSet:GetObject (System.String name,
Boolean  ignoreCase)
in <0x0007a> System.Resources.ResourceManager:GetObject (System.String name,
Sys tem.Globalization.CultureInfo culture)
in <0x00010> System.Resources.ResourceManager:GetObject (System.String name)
in <0x00017> System.Windows.Forms.Locale:GetResource (System.String name)
in <0x00011> System.Windows.Forms.Form:.cctor ()--- End of inner exception
stack  trace ---

in <0x00000> <unknown method>
in <0x0000b> exemplo1:.ctor ()
in (wrapper remoting-invoke-with-check) exemplo1:.ctor ()
in <0x00018> exemplo1:Main ()


===
Thanks

--
Willngton Roque
E-mail: willngton at gmail.com
MSN: willngton at hotmail.com
ICQ: 82484019
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060103/bd8e15fa/attachment.html


More information about the Mono-list mailing list