Solved

Service stuck on starting state.

Posted on 2004-03-22
5
1,148 Views
Last Modified: 2008-02-01
Hi there,

I have a problem getting a service written in VB.NET to start on my machine. I have stripped back all the code so I just have a timer and I write to a log when the timer expires. When I start the service, it remains in the starting state and does not change to running. This is only a problem on my dev machine. The service is running though as entries are being written to the log every 30 seconds. When I start the service, I get a 1053 Error.

Both machines are running Win2K Pro.

I don't think this is a code issue but I would appreciate any help I can get.

Many thanks
0
Comment
Question by:philasmith
5 Comments
 
LVL 2

Expert Comment

by:Ivan_Skrinjaric
Comment Utility
You shoud be runing service under account that has administrator privileges.
Also look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q278712.
0
 

Author Comment

by:philasmith
Comment Utility
Thanks for your comment Ivan. I am signed in as an administrator when i start the service and I am able to start and stop other services on the system. I also have the service running under the "LocalSystem" account.
0
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
Comment Utility
The 1053 says that the OS didn't get proper status within the time it expected.

In .NET services, the RUNNING state is signaled when control gets to the OnStart() code after exiting from the service Main() and going through ServicName() [which calls InitializeComponent()].

Not seeing your code, I'd guess you're not getting to OnStart() quickly enough.

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sumHeights2  challenge 7 75
powerN  challenge 3 46
What is Python programming? 3 62
White board coding practice 3 60
This is about my first experience with programming Arduino.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now