Solved

Service stuck on starting state.

Posted on 2004-03-22
5
1,154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
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 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 …

630 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