Hi, Solution (WorkAround) doesn't Work for me unfortunately.....
Still get Mono System.Windows.Forms Assembly [Revision: 44786; built: 2005/5/25 22:34:45] Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.DllNotFoundException: in (wrapper managed-to-native) System.Windows.Forms.XplatUIX11:XInitThreads () in <0x0006f> System.Windows.Forms.XplatUIX11:.ctor () in <0x0003f> System.Windows.Forms.XplatUIX11:GetInstance () in <0x00061> System.Windows.Forms.XplatUI:.cctor ()--- End of inner exception stack trace --- in <0x00000> <unknown method> in <0x00049> System.Windows.Forms.Form:get_CreateParams () in <0x0022f> System.Windows.Forms.Control:.ctor () in <0x00011> System.Windows.Forms.ScrollableControl:.ctor () in <0x00010> System.Windows.Forms.ContainerControl:.ctor () in <0x00010> System.Windows.Forms.Form:.ctor () in <0x00017> WaitCursorTestApp.Form1:.ctor () in (wrapper remoting-invoke-with-check) WaitCursorTestApp.Form1:.ctor () in <0x0001a> WaitCursorTestApp.Form1:Main () --Matt I posted this and Miguel answered previously with a workaround (I don't know about a fix). I put Miguel's answer below. Hello, > Sorry all, this is probably easy but I can't figure it out. I was > running fine until I just updated from SVN (my source was maybe a week > old). Now I get the following when I run a test app; obviously it > can't find the X11 lib. SWF apps were working prior to my updating > from SVN; did something change? I have libX11.so.6.2 in my > /usr/X11R6/lib/ directory, and that path is in my /etc/ld.so.conf file > (if that provides any info). I had the exact same issue, I had to edit my LD_LIBRARY_PATH to point to /usr/X11R6/lib to make it work. Am not sure why this is happening, I think the intention was to not depend on the "-devel" packages which are the ones that ship the version-less .so In this process, someone forgot to test the code. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Johnson Sent: Wednesday, June 08, 2005 10:40 AM To: winforms Subject: [Mono-winforms-list] An annoying problem Hi, Whenever I try to run a program compiled against MWF, I keep getting the same error Unhandled Exception: System.TypeInitializationException: An exception was thrown by the initializer for System.Windows.Forms.XplatUI ---> System.DllNotFoundException: libX11.so.6.2 I know this has come up before and from what I remember when Miguel flagged it up was that there was a problem within XplatUI. Is there a work around or will XplatUI be getting fixed sometime in the not too distant future? TTFN Paul -- "He's not the Messiah, he's a very naughty boy" - Life of Brian, Monty Python _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list Hi, I managed to reproduce the Problem on another machine...I had Mono 1.1.7 running on Suse 9.2, upgraded to SVN almost the same error occurred...except that the System.DllNotFoundException was stating libX11.so.6.2 was missing, which it is definitely not, and also the proper symlinks are there. Downgradeed to 1.1.7 Release...Everything is working again... If I only substitute the System.Windows.Forms.dll in 1.1.7 with SVN Version, System.Windows.Forms Applications still run....Problem appears to be deeper... Code, that causes the Problem (any SWF App, but also as simple code as following): using System; using System.Windows.Forms; namespace WelcomeGUI { class Welcome { public static void Main( string[] args ) { MessageBox.Show( "Welcome\nto\nC#\nprogramming!" ); } } } Thanks --Matt -----Urspr�ngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Paul Gesendet: Dienstag, 7. Juni 2005 23:27 An: Mono List Betreff: Re: AW: [Mono-list] System.Windows.Forms not working Hi, > String is hardcoded in > mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs > > Console.WriteLine("Mono System.Windows.Forms Assembly [Revision: > 44786; built: 2005/5/25 22:34:45]"); What code caused the error to be generated? TTFN Paul -- "Space", it says, "is big. Really big. You just won't believe how vastly, hugely, mind-bogglingly big space really is. I mean, you may think it's a long way down the road to the chemists, but that's just *peanuts* compared to space, listen" - Hitch Hikers Guide to the Galaxy _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list Hello I have latest SVN Version... String is hardcoded in mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs Console.WriteLine("Mono System.Windows.Forms Assembly [Revision: 44786; built: 2005/5/25 22:34:45]"); --Matt -----Urspr�ngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Paul Johnson Gesendet: Dienstag, 7. Juni 2005 15:33 An: mono Betreff: Re: [Mono-list] System.Windows.Forms not working Hi, > Mono System.Windows.Forms Assembly [Revision: 44786; built: 2005/5/25 > 22:34:45] That's quite old. Have you done a fresh checkout and build and seen if the problem still exists? TTFN Paul -- "He's not the Messiah, he's a very naughty boy" - Life of Brian, Monty Python _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list Hi I can't figure out what my problem is here...I am running Gentoo Linux, mono from svn... System.Windows.Forms used to work, now it doesn't anymore....Which dll is missing? Somebody please help... This is the output... Mono System.Windows.Forms Assembly [Revision: 44786; built: 2005/5/25 22:34:45] Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.DllNotFoundException: in (wrapper managed-to-native) System.Windows.Forms.XplatUIX11:XInitThreads () in <0x0006f> System.Windows.Forms.XplatUIX11:.ctor () in <0x0003f> System.Windows.Forms.XplatUIX11:GetInstance () in <0x00061> System.Windows.Forms.XplatUI:.cctor ()--- End of inner exception stack trace --- in <0x00000> <unknown method> in <0x00049> System.Windows.Forms.Form:get_CreateParams () in <0x0022f> System.Windows.Forms.Control:.ctor () in <0x00011> System.Windows.Forms.ScrollableControl:.ctor () in <0x00010> System.Windows.Forms.ContainerControl:.ctor () in <0x00010> System.Windows.Forms.Form:.ctor () in <0x00017> WaitCursorTestApp.Form1:.ctor () in (wrapper remoting-invoke-with-check) WaitCursorTestApp.Form1:.ctor () in <0x0001a> WaitCursorTestApp.Form1:Main () Thanks --Matt _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
