Error in Windows Service

  • Thread starter Karthikeyan.T.S
  • Start date
K

Karthikeyan.T.S

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
 
M

Martin.Kunc

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top