Hi,
I am getting a error when I try to start a Windows Service. The error is
"The XYZ service on local computer started and then stopped.Some services
stop automatically if they have no work to do,for example, the performance
logs and alerts service."
I don't know why it is throwing such a error. kindly advise.
Thanks in Advance.
Regards,
Karthi
Martin.Kunc@gmail.com - 05 Sep 2006 08:13 GMT
Hallo Karthi,
this is most probably what it says, your service starts and then
finishes. You could have an exception thrown, or it is your application
normal behaviour.
When you write win services, it is good practice to log everything into
eventlog for example. Or, it is usual to write service first as console
application without all neccessary Installer stuff and try all your
work with visible output.
Your service should do something, or simply wait something all the time
until it is finished from SCM.
regards, Martin
> Hi,
>
[quoted text clipped - 7 lines]
> Regards,
> Karthi