Windows service suddenly stops work.

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

Guest

Hi,
I wrote a windows service in c# in .NET 1.1 and SQL Stored Procedures, and I
run it on Microsoft windows server 2003 service pack 1.
The service works every 10 minutes and pass data between SQL tables.

The service works well for about 2 hours.
After about 2 hours the service stops.
When I look at the event viewer I see the message:
Faulting application <my service name>.exe, version 1.0.2413.28158, faulting
module kernel32.dll, version 5.2.3790.1830, fault address 0x00015dea.

I do not catch any Exception when I use try catch blocks.
I do not understand why it happens only after 2 hours, and what can I do to
solve the problem.
Does it happen because of system problems or because of software problems?

Thanks for your help!
 
Try adding an UnhandledException (UE) handler that logs the exception to the
event log. It may provide more information about the failure.

By default when a 2.0 .net app has a UE the runtime causes it to shutdown.
 
Hi David Levine,

It probably was an unhandled exception that causes my service to stop.
Thanks for your help.
 
Back
Top