473,569 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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/CreatingAWindow sServiceSample. 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 serviceprocessi nstaller uses the "LocalSyste m" account while installing.
Any help is greatly appreciated.
Thank you
Ashwin Kambli
Nov 15 '05 #1
6 13069
Try this

protected override void OnStart(string[] args)

{

Thread t = new Thread(new ThreadStart(You rApp.ThreadRun) );

t.Start();
}

"Ashwin Kambli" <as****@voiceno w.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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/CreatingAWindow sServiceSample. 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 serviceprocessi nstaller uses the "LocalSyste m" 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******** ******@TK2MSFTN GP10.phx.gbl...
Try this

protected override void OnStart(string[] args)

{

Thread t = new Thread(new ThreadStart(You rApp.ThreadRun) );

t.Start();
}

"Ashwin Kambli" <as****@voiceno w.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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/CreatingAWindow sServiceSample. 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 serviceprocessi nstaller uses the "LocalSyste m" 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****@voiceno w.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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/CreatingAWindow sServiceSample. 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 serviceprocessi nstaller uses the "LocalSyste m" 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******** ******@TK2MSFTN GP12.phx.gbl...
Read this article in MSDN?

PSS ID Number: 307309

"Ashwin Kambli" <as****@voiceno w.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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/CreatingAWindow sServiceSample. 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 serviceprocessi nstaller uses the "LocalSyste m" 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****@voiceno w.com> wrote in message
news:eh******** ******@TK2MSFTN GP12.phx.gbl...
I tried it. Still does not work.

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

protected override void OnStart(string[] args)

{

Thread t = new Thread(new ThreadStart(You rApp.ThreadRun) );

t.Start();
}

"Ashwin Kambli" <as****@voiceno w.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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/CreatingAWindow sServiceSample. 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 serviceprocessi nstaller uses the "LocalSyste m" account while

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



Nov 15 '05 #6
techy1
1 New Member
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/CreatingAWindow sServiceSample. 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 serviceprocessi nstaller uses the "LocalSyste m" 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
488
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 message on one server. I have reduced the code to almost nothing so as to remove almost all the proper code. My main function looks like this ...
1
7729
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 don't have visual studio, but when I try to start the service it immediately fails with error 1053: The service did not respond to the start or control...
4
15872
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 : microsoft.public.dotnet.languages.csharp URL :...
5
14110
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 the service, i get the following error Error 1053: The service did not respond to the start or control request in a timely fashion 1. Is there...
5
4259
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 connects to the Server, the server will process and send result to the client.(This is Client Server Application. The Server side Code is implementd...
3
7475
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 on her local machine. Everything looks pretty good. OpenLDAP/cygwin works great. PostgreSQL works great. Apache runs. PHP runs. But when I...
0
1235
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 - Creating a Windows Service Application in the Component Designer) But when I start the service I get a Unhandled System.Security.SecurityException...
7
13351
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 not respond to the start or control request in a timely fashion. I understand that the scm issue the start and is supposed to put up this error...
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.