Windows service not starting

M

Maqsood Ahmed

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,
Maqsood Ahmed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top