J
jehugaleahsa
Hello:
I have had a program that checks LDAP to get a list of all the users
whose password will expire. I send these users an email letting them
know to change their passwords.
It had been working fine for months. Then, all of a sudden, something
changed and now the service dies unexpectedly. I wrote some code to
log what was the last step performed and it appears as though the
service dies while it is "sleeping".
Is there something on Windows that would try to kill my service? It
will usually run successfully once and then just die with an event
viewer log of "Faulting application, ..., faulting module unknown, ...
The error message is worthless and the log shows that everything ran
fine. Does anyone know what could be causing this to happen? Even
odder is the fact that is only seems to die on a production machine
and not on a test machine.
By the way, I originally wrote the service to work in a Thread.
However, in an attempt to resolve this issue, I am now using
System.Timers.Timer to do the same thing. The Thread always died
during Thread.Sleep and the Timer dies while time is passing. It is
just like something is killing my service.
Thanks,
Travis
I have had a program that checks LDAP to get a list of all the users
whose password will expire. I send these users an email letting them
know to change their passwords.
It had been working fine for months. Then, all of a sudden, something
changed and now the service dies unexpectedly. I wrote some code to
log what was the last step performed and it appears as though the
service dies while it is "sleeping".
Is there something on Windows that would try to kill my service? It
will usually run successfully once and then just die with an event
viewer log of "Faulting application, ..., faulting module unknown, ...
The error message is worthless and the log shows that everything ran
fine. Does anyone know what could be causing this to happen? Even
odder is the fact that is only seems to die on a production machine
and not on a test machine.
By the way, I originally wrote the service to work in a Thread.
However, in an attempt to resolve this issue, I am now using
System.Timers.Timer to do the same thing. The Thread always died
during Thread.Sleep and the Timer dies while time is passing. It is
just like something is killing my service.
Thanks,
Travis