473,398 Members | 2,113 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,398 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 15591
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

"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 #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

"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]


--
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.