I've installed my serivce but cannot start it.
I get dialog window with the message:
Windows could not start the WU Distribution Service service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion.
And two EventLog entries: the first with the same message and the second one with:
A timeout was reached (30000 milliseconds) while waiting for the WU Distribution Service service to connect.
My serivce class has default generated constructor with the only call to InitializeComponent()
so nothing heavy.
Just to check how long OnStart runs I inserted Debug.WriteLine
with times tamps and added TextWriterTraceListener
with Debug.AutoFlush
set to true.
No log file was created, thus OnStart was not called.
To be absolutely sure I just throw exception inside OnStart
but still get no messages about exception.
I need to know what can be the reasons why OnStart
is not called.