Do you happen to call Stop on the server instance in your Elapsed event
handler?
Willy.
|I have read that this doesn't happen to everyone. I have also heard that
it
| works under Windows 2000, but not always under 2003.
|
| The service is simple. It waits 60 seconds, then logs into a mailbox to
| push files into a SQL DB.
|
| We can't physically recreate the problem. Instead, we encounter the
problem
| after about 20 - 30 days of running. We are working on a service that
will
| notify us if it is in a stopped state, so we can better narrow down the
| times that it runs.
|
| We ae running on Windows 2003 w/SP1. I'll look into the Exception.
|
| "Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote
| in message | > Hi,
| >
| >
| >
| > | >> We are using System.Timers.Timer and we do have AutoReset set to True.
| >> m_Timer.AutoReset = true;
| >>
| >
| > What the service does?
| > Does it happen the first time or after several events?
| > Are you handling all the exceptions ? using AppDomain.UnHandledException
| >
| > I have a similar environment and I haven't had any problem yet, the
timer
| > (and a filesystemwatcher) works as expected all the time.
| >
| >
| >
| >
| > --
| > Ignacio Machin,
| > ignacio.machin AT dot.state.fl.us
| > Florida Department Of Transportation
| >
| >
| >
|
|