I installed SuSE 9.2 (not full) with Mono (1.1.4 first 1.1.5 after). I had got 
several easy problems and then two hard remained.

1.,
[EMAIL PROTECTED]:~/Documents/mono_test/01> mono MonoTest01.exe 
Mono System.Windows.Forms Assembly [Revision: 41731; built: 2005/2/15 5:56:12]
Unhandled Exception: System.TypeInitializationException: An exception was 
thrown by the type initializer for System.Windows.Forms.XplatUI ---> 
System.Reflection
.TargetInvocationException: Exception has been thrown by the target of an 
invoca tion. ---> System.NotSupportedException: Either image format is unknown 
or you d on'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 (Sys
tem.IO.Stream)
in <0x00104> 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 <0x0006f> 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 <0x00107> System.Reflection.MonoCMethod:Invoke (System.Object obj, 
BindingFla gs invokeAttr, System.Reflection.Binder binder, System.Object[] 
parameters, Syst em.Globalization.CultureInfo culture) in <0x00017> 
System.Reflection.MethodBase:Invoke (System.Object obj, System.Obje ct[] 
parameters) in <0x0021d> System.Runtime.Serialization.ObjectRecord:LoadData 
(System.Runtime. Serialization.ObjectManager manager, ISurrogateSelector 
selector, StreamingConte xt context) in <0x00104> 
System.Runtime.Serialization.ObjectManager:DoFixups () in <0x0003f> 
System.Runtime.Serialization.Formatters.Binary.ObjectReader:ReadNex
tObject (System.IO.BinaryReader reader)
in <0x000b0> 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 <0x00126> 
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Dese
rialize (System.IO.Stream serializationStream, 
System.Runtime.Remoting.Messaging .HeaderHandler handler) in <0x00012> 
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Dese
rialize (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 <0x000d3> System.Resources.ResourceManager:GetObject (System.String name, 
System.Globalization.CultureInfo culture)
in <0x00010> System.Resources.ResourceManager:GetObject (System.String name) in 
<0x0001d> System.Windows.Forms.Locale:GetText (System.String msg) in <0x00500> 
System.Windows.Forms.X11Keyboard:DetectLayout () in <0x00063> 
System.Windows.Forms.X11Keyboard:.ctor (IntPtr display) in <0x002f5> 
System.Windows.Forms.XplatUIX11:SetDisplay (IntPtr display_handle) in <0x00098> 
System.Windows.Forms.XplatUIX11:.ctor () in <0x00043> 
System.Windows.Forms.XplatUIX11:GetInstance () in <0x00059> 
System.Windows.Forms.XplatUI:.cctor ()--- End of inner exception stack trace 
---
in <0x00000> <unknown method>
in <0x0004b> System.Windows.Forms.Form:get_CreateParams ()
in <0x001fc> System.Windows.Forms.Control:.ctor ()
in <0x00011> System.Windows.Forms.ScrollableControl:.ctor ()
in <0x0000c> System.Windows.Forms.ContainerControl:.ctor ()
in <0x00010> System.Windows.Forms.Form:.ctor ()
in <0x0000a> MonoTest01.Form1:.ctor ()
in (wrapper remoting-invoke-with-check) MonoTest01.Form1:.ctor () in <0x0001a> 
MonoTest01.Form1:Main ()




This error occured becouse package gd or gd-devel was not installed (I 
installed them by random and it worked :)).

2.,
[EMAIL PROTECTED]:~/Documents/mono_test/01> mono MonoTest01.exe 
Mono System.Windows.Forms Assembly [Revision: 41731; built: 
2005/2/15 5:56:12] 
Keyboard layout not recognized 
Unhandled Exception: System.TypeInitializationException: An exception 
was thrown by the type initializer for System.Windows.Forms.XplatUI ---> 
System.NullReferenceException: Object reference not set to an instance of 
an object 
in <0x003a1> 
System.Windows.Forms.X11Keyboard:CreateConversionArray 
(System.Windows.Forms.KeyboardLayout layout) 
in <0x00071> System.Windows.Forms.X11Keyboard:.ctor (IntPtr display) 
in <0x002f5> System.Windows.Forms.XplatUIX11:SetDisplay (IntPtr 
display_handle) 
in <0x00098> System.Windows.Forms.XplatUIX11:.ctor () 
in <0x00043> System.Windows.Forms.XplatUIX11:GetInstance () 
in <0x00059> System.Windows.Forms.XplatUI:.cctor ()--- End of inner 
exception stack trace --- 
in <0x00000> <unknown method> 
in <0x0004b> System.Windows.Forms.Form:get_CreateParams () 
in <0x001fc> System.Windows.Forms.Control:.ctor () 
in <0x00011> System.Windows.Forms.ScrollableControl:.ctor () 
in <0x0000c> System.Windows.Forms.ContainerControl:.ctor () 
in <0x00010> System.Windows.Forms.Form:.ctor () 
in <0x0000a> MonoTest01.Form1:.ctor () 
in (wrapper remoting-invoke-with-check) MonoTest01.Form1:.ctor () 
in <0x0001a> MonoTest01.Form1:Main () 




This error occured becouse Hungarian keyboard layout was set. I reset keyboard 
layout in Sax2 to US English, and now everything is fine.
I hope this may be helpful for others.

(K)

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to