Hi, try using export DISPLAY=:0.0
2008/10/12 Xiu_FR <[EMAIL PROTECTED]>: > > > > Paul F. Johnson wrote: >> >> Hi, >> >>> Hi, i use debian >> >> Open a terminal window and type >> >> sudo env $DISPLAY=0:0 >> >> This should set your display environment variable to 0:0 >> >> once done, see if you can run the winform app. If you're still having >> problems, can you email the source over to me and I'll see if I get the >> same problems on my Fedora box? >> >> >> > > Thanks for you reply. > > sd13341:~# sudo env $DISPLAY=0:0 > TERM=xterm > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin > LANG=fr_FR > HOME=/root > SHELL=/bin/bash > LOGNAME=root > USER=root > SUDO_COMMAND=/usr/bin/env =0:0 > SUDO_USER=root > SUDO_UID=0 > SUDO_GID=0 > =0:0 > > I always a mistake, that of XSERVER required. > > Unhandled Exception: 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.Application.EnableVisualStyles () [0x00000] > at . () [0x00000] > > I am sending the application to wich email ? > > > > -- > View this message in context: > http://www.nabble.com/Mono%2C-XPlatUIX11%2C-error-tp19928242p19937772.html > Sent from the Mono - WinForms mailing list archive at Nabble.com. > > _______________________________________________ > Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-winforms-list > -- ----------------------------------- Albano Daniele Salvatore aka daniele_dll Sito: http://www.phpsoft.it Servizi Offerti: - Sviluppo software C# - Sviluppo siti web PHP - Gestione Fedora, Centos, Gentoo ----------------------------------- _______________________________________________ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list