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

Windows Service unable to start at sytem restart!

P: n/a
I have made a windows service which is configured to start
automatically at the system startup under the USER account type. The
service is working perfectly fine when I try to start it manually, but
it is unable to start automatically at system restart and following
errors are displayed in the Event Logs.

1 - Timeout (30000 milliseconds) waiting for the (Service Name)
service to connect.
2 - The (Service Name) service failed to start due to the following
error: The service did not respond to the start or control request in
a timely fashion.

I also have also tried to write log entries in 'OnStart()' and Main
methods but the logs are also not displayed.
Does it indicate that it requires user credentials within 30 seconds?

I am using C# with .NET framework 2.0. I have tried to run the service
on Windows XP Pro and Windows Server 2003.

Regards,
Dec 14 '07 #1
Share this Question
Share on Google+
9 Replies


P: n/a
Talk to Maqssood Ahmed.

He has an identical problem.
"Yasir Zaheer" <ya**********@gmail.comwrote in message
news:c9**********************************@e25g2000 prg.googlegroups.com...
>I have made a windows service which is configured to start
automatically at the system startup under the USER account type. The
service is working perfectly fine when I try to start it manually, but
it is unable to start automatically at system restart and following
errors are displayed in the Event Logs.

1 - Timeout (30000 milliseconds) waiting for the (Service Name)
service to connect.
2 - The (Service Name) service failed to start due to the following
error: The service did not respond to the start or control request in
a timely fashion.

I also have also tried to write log entries in 'OnStart()' and Main
methods but the logs are also not displayed.
Does it indicate that it requires user credentials within 30 seconds?

I am using C# with .NET framework 2.0. I have tried to run the service
on Windows XP Pro and Windows Server 2003.

Regards,
Dec 14 '07 #2

P: n/a
If we both have the same problem how are we gonna solve it via
discussion?
On Dec 14, 1:22 pm, "Stephany Young" <noone@localhostwrote:
Talk to Maqssood Ahmed.

He has an identical problem.

"Yasir Zaheer" <yasir.sof...@gmail.comwrote in message

news:c9**********************************@e25g2000 prg.googlegroups.com...
I have made a windows service which is configured to start
automatically at the system startup under the USER account type. The
service is working perfectly fine when I try to start it manually, but
it is unable to start automatically at system restart and following
errors are displayed in the Event Logs.
1 - Timeout (30000 milliseconds) waiting for the (Service Name)
service to connect.
2 - The (Service Name) service failed to start due to the following
error: The service did not respond to the start or control request in
a timely fashion.
I also have also tried to write log entries in 'OnStart()' and Main
methods but the logs are also not displayed.
Does it indicate that it requires user credentials within 30 seconds?
I am using C# with .NET framework 2.0. I have tried to run the service
on Windows XP Pro and Windows Server 2003.
Regards,- Hide quoted text -

- Show quoted text -
Dec 14 '07 #3

P: n/a
On Dec 14, 10:25 am, Yasir Zaheer <yasir.sof...@gmail.comwrote:
If we both have the same problem how are we gonna solve it via
discussion?
It was a subtle hint that posting exactly the same question under two
different names isn't going to solve your problem any faster.

Jon
Dec 14 '07 #4

P: n/a
Thanks John for the hint.... but do you people have any solution for
that.. is yes please let me know!
regards,
Yasir Zaheer
On Dec 14, 3:52 pm, "Jon Skeet [C# MVP]" <sk...@pobox.comwrote:
On Dec 14, 10:25 am, Yasir Zaheer <yasir.sof...@gmail.comwrote:
If we both have the same problem how are we gonna solve it via
discussion?

It was a subtle hint that posting exactly the same question under two
different names isn't going to solve your problem any faster.

Jon
Dec 14 '07 #5

P: n/a
Are you trying to interact with the desktop in any way?

If the service runs while you are logged in, my assumption would be
"yes". When you start the machine up, there is no interactive login
session, and if you are trying to do something with the desktop when you
start, then it's going to fail, since no one is logged in.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Yasir Zaheer" <ya**********@gmail.comwrote in message
news:c9**********************************@e25g2000 prg.googlegroups.com...
>I have made a windows service which is configured to start
automatically at the system startup under the USER account type. The
service is working perfectly fine when I try to start it manually, but
it is unable to start automatically at system restart and following
errors are displayed in the Event Logs.

1 - Timeout (30000 milliseconds) waiting for the (Service Name)
service to connect.
2 - The (Service Name) service failed to start due to the following
error: The service did not respond to the start or control request in
a timely fashion.

I also have also tried to write log entries in 'OnStart()' and Main
methods but the logs are also not displayed.
Does it indicate that it requires user credentials within 30 seconds?

I am using C# with .NET framework 2.0. I have tried to run the service
on Windows XP Pro and Windows Server 2003.

Regards,

Dec 14 '07 #6

P: n/a
Any UI going on? supported in XP, but not in Vista as I belive...

in XP might try "Interact with desktop", might try a sleep in the
beginning of startup just to get it working

//CY
Dec 15 '07 #7

P: n/a
No Nicholas.... I am not trying to interact with the desktop!

Actually desktop interaction is only possible if I run it under "Local
System" Account. As i told you i am running under specific "User"
account.

thanks for your interest,
Regards,

Yasir Zaheer!

On Dec 14, 11:24 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Are you trying to interact with the desktop in any way?

If the service runs while you are logged in, my assumption would be
"yes". When you start the machine up, there is no interactive login
session, and if you are trying to do something with the desktop when you
start, then it's going to fail, since no one is logged in.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"Yasir Zaheer" <yasir.sof...@gmail.comwrote in message

news:c9**********************************@e25g2000 prg.googlegroups.com...
I have made a windows service which is configured to start
automatically at the system startup under the USER account type. The
service is working perfectly fine when I try to start it manually, but
it is unable to start automatically at system restart and following
errors are displayed in the Event Logs.
1 - Timeout (30000 milliseconds) waiting for the (Service Name)
service to connect.
2 - The (Service Name) service failed to start due to the following
error: The service did not respond to the start or control request in
a timely fashion.
I also have also tried to write log entries in 'OnStart()' and Main
methods but the logs are also not displayed.
Does it indicate that it requires user credentials within 30 seconds?
I am using C# with .NET framework 2.0. I have tried to run the service
on Windows XP Pro and Windows Server 2003.
Regards,
Dec 16 '07 #8

P: n/a
Dont know if it will help but I got some help from service loader/
runner from http://theimes.com

//CY
Dec 16 '07 #9

P: n/a
Thanks christ,

but this loader/runner just do nothing else than provide the
functionalities service controller provides.

Regards,
On Dec 16, 4:49 pm, christ...@gmail.com wrote:
Dont know if it will help but I got some help from service loader/
runner fromhttp://theimes.com

//CY
Dec 26 '07 #10

This discussion thread is closed

Replies have been disabled for this discussion.