LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Running Mono on Centos 5 CLI (http://www.linuxquestions.org/questions/linux-software-2/running-mono-on-centos-5-cli-4175459020/)

iLinux85 04-21-2013 02:36 PM

Running Mono on Centos 5 CLI
 
1 Attachment(s)
I have vps server (virtual private server) running on linux centos 5 32 bit , i installed vncserver x windows , gnome and kde environment and i connect to the vnc server from vncviewer in my windows 7 desktop

now i execute the command

Code:

mono Radegast.exe
in terminal and i got

Code:

[ERROR]: - Unhandled 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 Radegast.MainProgram.RunRadegast (System.String[] args) [0x00000]
      at Radegast.MainProgram.Main (System.String[] args) [0x00000] : An exception was thrown by the type initializer for System.Windows.Forms.XplatUI
      at System.Windows.Forms.Application.EnableVisualStyles () [0x00000]
      at Radegast.MainProgram.RunRadegast (System.String[] args) [0x00000]
      at Radegast.MainProgram.Main (System.String[] args) [0x00000]

mono version is

# mono -V
Code:

Mono JIT compiler version 2.4.2.3 (tarball Sat Apr 20 19:49:33 MSD 2013)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
        TLS:          __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:      altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none



All times are GMT -5. The time now is 06:33 AM.