Windows service suddenly stops work.

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!
 
D

David Levine

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.
 
G

Guest

Hi David Levine,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top