I\'m having difficulty trying to determine the cause of a timeout in a Windows Service I\'ve created with C#. I\'ve spent a considerable amount of time looking at several posts
In general, spawning a background thread from OnStart
is the right thing to do.
For troubleshooting purposes, you could try to give your service more startup time by calling RequestAdditionalTime method from OnStart
. Also, you might want to check if any messages have been written to the Windows EventLog (log "Application", the source should be your service name).