Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Service stuck on starting state.

Posted on 2004-03-22
5
Medium Priority
?
1,158 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
3 Comments
 
LVL 2

Expert Comment

by:Ivan_Skrinjaric
ID: 10652169
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
ID: 10652268
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 2000 total points
ID: 10653021
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Loops Section Overview

824 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