471,089 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Error in Windows service

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

Sep 4 '06 #1
9 15432
Hi,

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

regards

Régis Baccaro

"Karthikeyan.T.S" wrote:
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
Sep 4 '06 #2
Hi,
Thanks for your reply.
Do you mean that we should login as a administrator or ...?
Kindly advise what to do.

Regards,
Karthi

"Régis Baccaro" wrote:
Hi,

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

regards

Régis Baccaro

"Karthikeyan.T.S" wrote:
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
Sep 4 '06 #3
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

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

Regards,
Karthi

"Régis Baccaro" wrote:
Hi,

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

regards

Régis Baccaro

"Karthikeyan.T.S" wrote:
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
>
Sep 4 '06 #4
Hi Karthi

The user account needs to be able to log on as service. See the below
link for a step by step on how to do this.

http://publib.boulder.ibm.com/infoce...p/msr10034.htm

On Mon, 04 Sep 2006 11:02:01 +0200, Karthikeyan.T.S
<Ka***********@discussions.microsoft.comwrote:
Hi,
Thanks for your reply.
Do you mean that we should login as a administrator or ...?
Kindly advise what to do.

Regards,
Karthi

"Rgis Baccaro" wrote:
>Hi,

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

regards

Rgis Baccaro

"Karthikeyan.T.S" wrote:
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


--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 4 '06 #5
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

"Morten Wennevik" wrote:
Hi Karthi

The user account needs to be able to log on as service. See the below
link for a step by step on how to do this.

http://publib.boulder.ibm.com/infoce...p/msr10034.htm

On Mon, 04 Sep 2006 11:02:01 +0200, Karthikeyan.T.S
<Ka***********@discussions.microsoft.comwrote:
Hi,
Thanks for your reply.
Do you mean that we should login as a administrator or ...?
Kindly advise what to do.

Regards,
Karthi

"Régis Baccaro" wrote:
Hi,

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

regards

Régis Baccaro

"Karthikeyan.T.S" wrote:

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

--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 4 '06 #6
Hi Régis Baccaro,

I am already using Admin user account. Kindly advise.

Regards,
Karthi

"Régis Baccaro" wrote:
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

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

Regards,
Karthi

"Régis Baccaro" wrote:
Hi,
>
this is probably an exception occuring because you don't run the service
under the proper user account
>
regards
>
Régis Baccaro
>
"Karthikeyan.T.S" wrote:
>
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
Sep 4 '06 #7
Something in your service is probably crashing. You need to implement
some logging to track it down.
On Mon, 04 Sep 2006 11:52:01 +0200, Karthikeyan.T.S
<Ka***********@discussions.microsoft.comwrote:
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

"Morten Wennevik" wrote:
>Hi Karthi

The user account needs to be able to log on as service. See the below
link for a step by step on how to do this.

http://publib.boulder.ibm.com/infoce...p/msr10034.htm

On Mon, 04 Sep 2006 11:02:01 +0200, Karthikeyan.T.S
<Ka***********@discussions.microsoft.comwrote:
Hi,
Thanks for your reply.
Do you mean that we should login as a administrator or ...?
Kindly advise what to do.

Regards,
Karthi

"Rgis Baccaro" wrote:

Hi,

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

regards

Rgis Baccaro

"Karthikeyan.T.S" wrote:

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

--
Happy Coding!
Morten Wennevik [C# MVP]


--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 4 '06 #8
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.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Karthikeyan.T.S" <Ka***********@discussions.microsoft.comwrote in message
news:A0**********************************@microsof t.com...
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

Sep 4 '06 #9
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.
Karthikeyan.T.S wrote:
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
Sep 5 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Richard Steele | last post: by
4 posts views Thread by Chris | last post: by
4 posts views Thread by Jason Richmeier | last post: by
1 post views Thread by =?Utf-8?B?cm9zczYxMw==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.