473,410 Members | 1,914 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,410 software developers and data experts.

Windows service 1053 error during startup.

Hi,
I am trying to write a Windows Service application using C#.
I wrote a very trivial example (logs messages during Start and Stop events
to the evenlog). I have no problem installing it (using installutil.exe).
But, when I try to start the service it times out and gives me a "Error:
1053 The service did not respond to the start or control request in a timely
fashion." message. Whats strange is that I have no problem starting up this
service on a different machine with the same configuration as mine.
I even tried a sample project by microsoft to check this
(http://download.microsoft.com/downlo...b5-a9bb-82b784
741313/CreatingAWindowsServiceSample.exe) But, I had the same problem during
its start up as I did with my other service.
My m/c config is: Windows 2000 professional, Version 5.0.2195, sp4.
The serviceprocessinstaller uses the "LocalSystem" account while installing.
Any help is greatly appreciated.
Thank you
Ashwin Kambli
Nov 15 '05 #1
6 13051
Try this

protected override void OnStart(string[] args)

{

Thread t = new Thread(new ThreadStart(YourApp.ThreadRun));

t.Start();
}

"Ashwin Kambli" <as****@voicenow.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
I am trying to write a Windows Service application using C#.
I wrote a very trivial example (logs messages during Start and Stop events
to the evenlog). I have no problem installing it (using installutil.exe).
But, when I try to start the service it times out and gives me a "Error:
1053 The service did not respond to the start or control request in a timely fashion." message. Whats strange is that I have no problem starting up this service on a different machine with the same configuration as mine.
I even tried a sample project by microsoft to check this
(http://download.microsoft.com/downlo...b5-a9bb-82b784 741313/CreatingAWindowsServiceSample.exe) But, I had the same problem during its start up as I did with my other service.
My m/c config is: Windows 2000 professional, Version 5.0.2195, sp4.
The serviceprocessinstaller uses the "LocalSystem" account while installing. Any help is greatly appreciated.
Thank you
Ashwin Kambli

Nov 15 '05 #2
I tried it. Still does not work.

"Chao Gao" <cg**@cottoninc.com> wrote in message
news:OA**************@TK2MSFTNGP10.phx.gbl...
Try this

protected override void OnStart(string[] args)

{

Thread t = new Thread(new ThreadStart(YourApp.ThreadRun));

t.Start();
}

"Ashwin Kambli" <as****@voicenow.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
I am trying to write a Windows Service application using C#.
I wrote a very trivial example (logs messages during Start and Stop events to the evenlog). I have no problem installing it (using installutil.exe). But, when I try to start the service it times out and gives me a "Error:
1053 The service did not respond to the start or control request in a

timely
fashion." message. Whats strange is that I have no problem starting up

this
service on a different machine with the same configuration as mine.
I even tried a sample project by microsoft to check this

(http://download.microsoft.com/downlo...b5-a9bb-82b784
741313/CreatingAWindowsServiceSample.exe) But, I had the same problem

during
its start up as I did with my other service.
My m/c config is: Windows 2000 professional, Version 5.0.2195, sp4.
The serviceprocessinstaller uses the "LocalSystem" account while

installing.
Any help is greatly appreciated.
Thank you
Ashwin Kambli


Nov 15 '05 #3
Read this article in MSDN?

PSS ID Number: 307309

"Ashwin Kambli" <as****@voicenow.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
I am trying to write a Windows Service application using C#.
I wrote a very trivial example (logs messages during Start and Stop events
to the evenlog). I have no problem installing it (using installutil.exe).
But, when I try to start the service it times out and gives me a "Error:
1053 The service did not respond to the start or control request in a timely fashion." message. Whats strange is that I have no problem starting up this service on a different machine with the same configuration as mine.
I even tried a sample project by microsoft to check this
(http://download.microsoft.com/downlo...b5-a9bb-82b784 741313/CreatingAWindowsServiceSample.exe) But, I had the same problem during its start up as I did with my other service.
My m/c config is: Windows 2000 professional, Version 5.0.2195, sp4.
The serviceprocessinstaller uses the "LocalSystem" account while installing. Any help is greatly appreciated.
Thank you
Ashwin Kambli

Nov 15 '05 #4
Yes I did. All it suggests is changing the start type from "Automatic" to
"Manual". It was of no help either.

"Chao Gao" <cg**@cottoninc.com> wrote in message
news:OY**************@TK2MSFTNGP12.phx.gbl...
Read this article in MSDN?

PSS ID Number: 307309

"Ashwin Kambli" <as****@voicenow.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
I am trying to write a Windows Service application using C#.
I wrote a very trivial example (logs messages during Start and Stop events to the evenlog). I have no problem installing it (using installutil.exe). But, when I try to start the service it times out and gives me a "Error:
1053 The service did not respond to the start or control request in a

timely
fashion." message. Whats strange is that I have no problem starting up

this
service on a different machine with the same configuration as mine.
I even tried a sample project by microsoft to check this

(http://download.microsoft.com/downlo...b5-a9bb-82b784
741313/CreatingAWindowsServiceSample.exe) But, I had the same problem

during
its start up as I did with my other service.
My m/c config is: Windows 2000 professional, Version 5.0.2195, sp4.
The serviceprocessinstaller uses the "LocalSystem" account while

installing.
Any help is greatly appreciated.
Thank you
Ashwin Kambli


Nov 15 '05 #5
It should, the as long as you return from OnStart within 30 seconds there
should be no problem.
When using a Thread delegate the method returns as soon as the thread has
started.

Willy.
"Ashwin Kambli" <as****@voicenow.com> wrote in message
news:eh**************@TK2MSFTNGP12.phx.gbl...
I tried it. Still does not work.

"Chao Gao" <cg**@cottoninc.com> wrote in message
news:OA**************@TK2MSFTNGP10.phx.gbl...
Try this

protected override void OnStart(string[] args)

{

Thread t = new Thread(new ThreadStart(YourApp.ThreadRun));

t.Start();
}

"Ashwin Kambli" <as****@voicenow.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> Hi,
> I am trying to write a Windows Service application using C#.
> I wrote a very trivial example (logs messages during Start and Stop events > to the evenlog). I have no problem installing it (using installutil.exe). > But, when I try to start the service it times out and gives me a
> "Error:
> 1053 The service did not respond to the start or control request in a

timely
> fashion." message. Whats strange is that I have no problem starting up

this
> service on a different machine with the same configuration as mine.
> I even tried a sample project by microsoft to check this
>

(http://download.microsoft.com/downlo...b5-a9bb-82b784
> 741313/CreatingAWindowsServiceSample.exe) But, I had the same problem

during
> its start up as I did with my other service.
> My m/c config is: Windows 2000 professional, Version 5.0.2195, sp4.
> The serviceprocessinstaller uses the "LocalSystem" account while

installing.
> Any help is greatly appreciated.
> Thank you
> Ashwin Kambli
>
>



Nov 15 '05 #6
techy1
1
Hi Ashwin,
I noticed in my application that if you have any code after the while loop in your MainThread, other than Thread::Sleep, the service will not start and will give you that 1053 error. I am still investigating into that issue because it seems to work sometimes.
So, if you have any termination code take it out.
Hope this helps.

Hi,
I am trying to write a Windows Service application using C#.
I wrote a very trivial example (logs messages during Start and Stop events
to the evenlog). I have no problem installing it (using installutil.exe).
But, when I try to start the service it times out and gives me a "Error:
1053 The service did not respond to the start or control request in a timely
fashion." message. Whats strange is that I have no problem starting up this
service on a different machine with the same configuration as mine.
I even tried a sample project by microsoft to check this
(http://download.microsoft.com/downlo...b5-a9bb-82b784
741313/CreatingAWindowsServiceSample.exe) But, I had the same problem during
its start up as I did with my other service.
My m/c config is: Windows 2000 professional, Version 5.0.2195, sp4.
The serviceprocessinstaller uses the "LocalSystem" account while installing.
Any help is greatly appreciated.
Thank you
Ashwin Kambli
May 3 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: 3dr | last post by:
I am developing a service which I install and run on a number of servers. It works on most machines I have installed it on, but I always get a 1053, service will not start in a timely fashion...
1
by: mtc | last post by:
I'm able to install and run a service I built on two machines - the one I built it on and another that has visual studio installed. I've installed it without problems on 3 other machines that...
4
by: Keith | last post by:
I'm in the same boat as the fellow who posted this message back in August: Title : Windows Service, How does one make a service "fail" properly? Author : Ross Bennett Group :...
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...
5
by: vinoth | last post by:
Hi, I have created WindowsService Project.In that Project OnStart Method i have written the following Code. In this code the Server is waiting for the connection from client. When the Client...
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
0
by: niclarke | last post by:
I have created a windows service based on a walkthrough in the MSDN library (ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_radcon/html/e24d8a3d-edc6-485c-b6e0-5672d91fb607.htm - ...
7
by: =?Utf-8?B?Sm9obi5ORVQ=?= | last post by:
Hi I have written a windows service in C# / .NET I have installed it and it's working fine on a couple boxes but on my XP box I get this error when I try to start it: Error 1053: The service did...
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...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.