Error in Windows service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Hi,

this is probably an exception occuring because you don't run the service
under the proper user account

regards

Régis Baccaro
 
Hi,
Thanks for your reply.
Do you mean that we should login as a administrator or ...?
Kindly advise what to do.

Regards,
Karthi
 
Hi,

for test purposes it's ok to use an administrator account, but in the real
world it's better with a dedicated service user with only the required
permissions.

-rgrds

Régis Baccaro
 
Hi Morten,
Thanks for your reply. I have done all the steps mentioned in that link. But
I am still getting the error. What to do next ?

Regards,
Karthi
 
Hi Régis Baccaro,

I am already using Admin user account. Kindly advise.

Regards,
Karthi
 
Something in your service is probably crashing. You need to implement
some logging to track it down.
 
You'll see this message if your service has code that causes it to go away
soon after it starts. If Windows starts a service and then sees it go away
quickly you'll see this. The service doesn't have to be crashing. I had a
service that started up and immediately went away because it had no work to
do - I had to make it wait for 20 seconds or so before stopping itself.
 
Hi,

Karthi.. this error msg. can be a because of so many reasons.

One thing for sure, can be..mayb ur data base connection coudnt be
established.
Mayb some other problem with ur Service say ur writing to a log-file
which is already closed/not opened at all.

You can view that in the Event viewer (under compmgmt.msc) or have some
log-files to track this down. Log-files are the best way to debug a WIN
Service.

Pls chk this. n mail me if still u get this prob.
 
Back
Top