473,246 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 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 15581
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: B Golash | last post by:
Hi I`m trying to install a third-party control. During the install I receive this error...see the url below. I have no idea as to the meaning of the error. ...
0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
5
by: Richard Steele | last post by:
I have created a WinForm application that needs to be run as a windows service (the PC is inaccesible by any user) i have successfully installed the application as a windows service. When i start...
4
by: Chris | last post by:
I posted this in the C# language group, then thought it might be more appropriate in this group. I would not cross-post except I want the answer so badly. I built small C# Web and Web Service...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
4
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
8
by: Kevin D. | last post by:
Please note, I already posted this on the MySQL official forum, but received no response. I thought I'd try again in another location. My apologies to anyone reading this twice... Despite...
4
by: Jason Richmeier | last post by:
I am sure this has been asked at least once before but I could not find anything when searching. If I set the value of the ExitCode property to 1066 for a windows service, the text "A service...
1
by: =?Utf-8?B?cm9zczYxMw==?= | last post by:
I'm puzzled by an error message encountered while creating a Windows Service. In particular, I'm creating a second Windows Service within a Windows Service project, using Visual Studio 2005. The...
2
Frinavale
by: Frinavale | last post by:
I thought it would be nice to share the solution to my IIS headache with the rest of the world. I have developed a web application that has been distributed. Upon installing my application, some...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.