[Mono-devel-list] mono-service changes and problems
Jörg Rosenkranz
joergr at voelcker.com
Sat Apr 9 18:47:40 EDT 2005
Hey,
I've introduced some changes to mono-service and
System.ServiceProcess.ServiceBase.
The ServiceBase.Run function now invokes the main loop of
mono-service as callback. This handling matches the Windows
behaviour better because Main ends after the service was
stopped.
There are still some problems with the managed implementation
of mono-service which are caused by the fact that the service
EXE is run in the context of mono-service.exe:
Assemblies in the service's directory are not been found.
I came around this problem by calling
AppDomain.CurrentDomain.AppendPrivatePath (Environment.CurrentDirectory);
This seems to be a hack but works for my test case.
Another problem is that the application config file isn't
used.
The best solution seems to be another AppDomain for running
the service. Is the cost of this acceptable or are there
other ways to solve these problems?
Thanks,
Joerg.
More information about the Mono-devel-list
mailing list