By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,199 Members | 1,725 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,199 IT Pros & Developers. It's quick & easy.

Windows service 1053 error during startup.

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: 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 discussion thread is closed

Replies have been disabled for this discussion.