Solved

Service stuck on starting state.

Posted on 2004-03-22
5
1,149 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
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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
array220 challenge 8 56
endX challenge 2 63
groupSumClump challenge 9 98
Advice on Xojo as a development tool over VB. 4 31
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

919 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

15 Experts available now in Live!

Get 1:1 Help Now