i install the mono,libgdiplus&mono-basic on gentoo livecd(livecd maked by myself),i have a vb(name is Desero.exe) program now.error when i run mono Desero.exe in terminal. note:the program run in my gentoo system is ok,but in my livecd is bad.
error message: Unhandled Exception: System.InvalidOperationException: An error occured while creating the form. See Exception.InnerException for details. The error is: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variable) Parameter name: Display 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 System.Windows.Forms.Control.get_CreateParams () [0x00000] at System.Windows.Forms.Control.InternalSizeFromClientSize (Size clientSize) [0x00000] at System.Windows.Forms.Control.ClientSizeFromSize (Size size) [0x00000] at System.Windows.Forms.Control..ctor () [0x00000] at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor () at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] --- End of inner exception stack trace --- at System.Windows.Forms.Control..ctor () [0x00000] at System.Windows.Forms.ScrollableControl..ctor () [0x00000] at System.Windows.Forms.ContainerControl..ctor () [0x00000] at System.Windows.Forms.Form..ctor () [0x00000] at Desero.MainForm..ctor () [0x00000] at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[]) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] --- End of inner exception stack trace --- at Desero.My.MyProject+MyForms.Create__Instance__[MainForm] (Desero.MainForm Instance) [0x00000] at Desero.My.MyProject+MyForms.get_MainForm () [0x00000] at Desero.MainForm.Main () [0x00000] -- View this message in context: http://www.nabble.com/mono-basic-running-error%2Chelp%21-tp17747189p17747189.html Sent from the Mono - VB mailing list archive at Nabble.com. _______________________________________________ Mono-vb mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-vb
