[Mono-list] Service do not start

Robert Jordan robertj at gmx.net
Tue Aug 4 09:03:30 EDT 2009

Sergio C. Charrua wrote:
> Hello all!
> i've been developing som Windows Services, using VS2005/2008 with no problems at all. Everything compiles correctly, Moma says everything is 100% correct, and everything run in windows (XP, Server, etc...).
> I've a CentOS 5.3 server running Mono since last September, and before upgrading from Mono 1.9 to latest, the same Windows Service was running correctly. 
> All that this service does is listen to a TCP IP Port, receive some data, and answers back. As i said, it used to work perfectly, until i upgraded to Version . 
> the strangest thing yet is that no error messages, no log events, nothing is catching the execption. I've even made a Logger class that logs everything to a text file, and it doesn't even catch any messages. No .lock file is created, nothing at all
> So my guess is that the Service is not starting/working at all.
> the start.sh file is as follows:
> #!/bin/bash
> export LD_LIBRARY_PATH=/usr/local/lib/;
> mono-service2 -l:/etc/GameServer/gameserver.lock -m:GameServer ServerService.exe
> if i do the following command:
> mono --debug --trace ServerService.exe

Look at the content of mono-service2 script and check if
it's actually calling $prefix/lib/mono/2.0/mono-service.exe.

At least one RedHat related distro is erroneously
invoking "mono-service2.exe" but I don't remember which one
it is.

> BUT the server has 4Gb RAM, and actually has 700Mb free physical memory...so Memory cannot be a problem...

Irrelevant. The exceptions you've encountered in the trace are
just created in advance. They are not thrown at this point.


More information about the Mono-list mailing list