[Mono-list] Winform App Failure
Alex James
alex00james@adelphia.net
Wed, 20 Apr 2005 20:06:01 -0400
To all:
I am getting this error when trying to run my winform app. The app will
seem to appear for a moment and then crash with this error:
The images used in the form were originally of .png format ... but I
believe that they were turned into resource files (on Windows) before
they were compiled.
Just for notes; I have libpng v1.2.8 installed and I am trying to run
this on a debian (ubuntu) system. It should also be noted that I tried
to replace the existing System.Windows.Forms.dll with the one on
http://svn.myrealbox.com/blog/ but I can't tell if it is using it or not.
Any help would be great!
Thanks,
Alex
Mono System.Windows.Forms Assembly [Revision: 41928; built: 2005/2/18
22:24:56]
Keyboard: United States keyboard layout (phantom key version)
Unhandled Exception: System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. --->
System.NotSupportedException: Either image format is unknown or you
don't have the required libraries for this format.
in <0x0016e> System.Drawing.GDIPlus:CheckStatus (Status status)
in <0x000cd> System.Drawing.Image:InitFromStream (System.IO.Stream stream)
in (wrapper remoting-invoke-with-check)
System.Drawing.Image:InitFromStream (System.IO.Stream)
in <0x00104> System.Drawing.Bitmap:.ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext
context)
in <0x00000> <unknown method>
in (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
in <0x0006f> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)---
End of inner exception stack trace ---
in <0x00107> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
in <0x00017> System.Reflection.MethodBase:Invoke (System.Object obj,
System.Object[] parameters)
in <0x0021d> System.Runtime.Serialization.ObjectRecord:LoadData
(System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector
selector, StreamingContext context)
in <0x00104> System.Runtime.Serialization.ObjectManager:DoFixups ()
in <0x0003f>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNextObject
(System.IO.BinaryReader reader)
in <0x000b0>
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object
result, System.Runtime.Remoting.Messaging.Header[] headers)
in <0x00126>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler)
in <0x00012>
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Deserialize
(System.IO.Stream serializationStream)
in <0x0052b> System.Resources.ResourceReader:ResourceValue (Int32 index)
in <0x00023> System.Resources.ResourceReader+ResourceEnumerator:get_Value ()
in <0x00090> System.Resources.ResourceSet:ReadResources ()
in <0x00039> System.Resources.ResourceSet:GetObject (System.String name,
Boolean ignoreCase)
in <0x00081> System.Resources.ResourceManager:GetObject (System.String
name, System.Globalization.CultureInfo culture)
in <0x00010> System.Resources.ResourceManager:GetObject (System.String name)
in <0x00509> iControlWin.mainForm:InitializeComponent ()
in <0x000fa> iControlWin.mainForm:.ctor ()
in (wrapper remoting-invoke-with-check) iControlWin.mainForm:.ctor ()
in <0x0001a> iControlWin.mainForm:Main ()