Windows Services

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a windows service that performs various functions that has recently
started to fail on startup. If I remove all event logging from code, it runs
fine. If I run the service on a development machine, it runs fine. I am
thinking there may be a security issue, but I am at a loss as to where to go
next. I have ran the service under diff logons with same results.
 
When it fails, are there any messages in the application and system
event logs? More detail is needed.
 
When the service fails I recieve a Message stating... "this could be an
internal windows system error or internal service error..." There are no
messages posted in the event logs about it failing.
 
Charles,

This may be a shot in the dark, but have you checked to make sure the
event log is not full? Make sure "Overwrite events as needed" is
selected. This is a common problem with services that write to the
event log.

Brian
 
Charles,

Try running a simple console application on the same box that writes to
the event log and capture the exception message. I'm not sure what
else to try.

Brian
 
Thanks for the reminder Brian. I needed to change the application properties
from "Windows App" to "Console App".

Sometimes even the easy things get way.
 
Back
Top