Error in Windows service


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
 
Ad

Advertisements

G

Guest

Hi,

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

regards

Régis Baccaro
 
G

Guest

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

Regards,
Karthi
 
G

Guest

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
 
G

Guest

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
 
Ad

Advertisements

G

Guest

Hi Régis Baccaro,

I am already using Admin user account. Kindly advise.

Regards,
Karthi
 
M

Morten Wennevik

Something in your service is probably crashing. You need to implement
some logging to track it down.
 
P

Phil Wilson

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.
 
Ad

Advertisements

F

Freaky

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.
 

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

Top