[Mono-list] Service do not start

SCharrua sergio.charrua at voip.pt
Tue Aug 4 19:15:00 EDT 2009


Hello all!

i followed your advice, Eric, and uninstalled everything and reinstalled
Mono using the following procedures:
./configure --prefix=/opt/mono
make 
make install

so now everything resides in /opt/mono 

export is now:

LD_LIBRARY_PATH="/opt/mono/lib:"
PKG_CONFIG_PATH="/opt/mono/lib/pkgconfig:"

and $PATH is 

/opt/mono/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin


so, seems that everything is ok now! (well, at least some webservices and a
website are running correctly)

now, if i run my Windows Service using:

./start.sh

i get in /var/log/messages the following:

Aug  5 00:01:45 sip mono: GameServer: An exception was thrown by the type
initializer for System.Windows.Forms.XplatUI
Aug  5 00:01:45 sip mono: GameServer: Could not open display (X-Server
required. Check you DISPLAY environment variable) Parameter nam
e: Display


I do not have X-Server / XWindows running (this is a server machine, pure
text mode), and i've checked once again my code and there is nothing require
form controls (this is indeed a Windows Service...), BUT, i'm using a TIMER
control, which Type is System.Windows.Forms.Timer . 
Could there be a problem regarding Timer controls in Mono build 2.4.2.2 ???

Regards,

Sergio
-- 
View this message in context: http://www.nabble.com/Service-do-not-start-tp24806538p24817935.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list