Groups | Blog | Home
all groups > dotnet general > august 2006 >

dotnet general : Windows service suddenly stops work.


Niron kag
8/13/2006 11:15:01 PM
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!
David Levine
8/14/2006 12:00:00 AM
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.

[quoted text, click to view]

shai
8/14/2006 4:15:02 AM
David Levine,
Thanks for your answer I will try it.


[quoted text, click to view]
shai
8/14/2006 10:51:01 PM
Hi David Levine,

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


[quoted text, click to view]
AddThis Social Bookmark Button