Being a newbie on C# managed services, I've probably done something horribly
wrong here...
The intent is to create a windows service that runs under the SYSTEM
account. I have created a service according to available examples in MSDN,
and I have used the Installutil.exe to install the service on my PC.
The OnStart method is still completely empty, I'd like to get the base
running before I start to build the solution.
The service installs OK. All parameters are OK in the registry and the
service (with Manual start) shows up in the Services console.
Now to the problem: when I try to start the service, I *immediately* (i.e.
within half a second) get an error message saying that the service didn't
respond in a timely manner.
When I look in the event log I have two entries;
SCM event 7009: Timeout (30000 milliseconds) waiting for the DVDService
service to connect.
SCM event 7000: The Service service failed to start due to the following
error:
The service did not respond to the start or control request in a timely
fashion.
Why doesn't the service start?
Why do I get an eventlog entry claiming that the service didn't respond
withiin 30 seconds, when the event log entry is written virually
instantaneously after my service start request?