I am trying to determine why a .Net service that I can successfully install on a wide number of machines won’t start on certain machines.
When the service is started on these machines the service instantly stops, so my assumptions are either that the users doesn’t have sufficient privileges to install the service or that there is an issue with the service; however, both of these conditions are false (the service works and they have sufficient privileges).
What are some steps I should take to determine the reason the service won’t start?
So I figured this out, thanks to looking at the event log from @Matthew Steeples and @Ben M.
The issue was the service writes to the event log on start when it connects up to a server; however, this machines event log was full, so when the service tried to write to the event log it failed, causing it to throw an exception which again couldn’t be written to the full event log.
So case in point, if you are writing to the event log make sure it isn’t full or that you are handling the exception!