Re: Custom Service Terminates Unexpectedly



Dave,

The service is a .Net 2.0 service and handles all exceptions. It is apparent
from the output file that the thread was aborted or interrupted by something
external to the service. The particular line of code that was executing when
the service stopped is in a Try...Catch block and only partly completed.

Thanks

"Dave Patrick" wrote:

If the service can't handle any abnormal conditions (eg exceptions) then it
may be impossible to know.



--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect


"JMZ" wrote:
A custom .Net service terminated unexpectedly with an entry in the System
Event log under Service Control Manager, error 7034. There were no other
entries in any event log. It appears from the files it was processing at
the
time that all the threads it started were terminated immediately. The
service
itself was not able to handle any exceptions, and I know that when it did
terminate, it was right in the middle of an XSLT transform call. The file
was
created, but it was empty. The XSLT is good. We have used it without any
problems for years. When I reprocessed the original file, it processed
fine.

It appears that some external event caused the service to terminate in
this
way, but the only thing we can do is wait for it to do the same thing
again,
alert us when it does, and run sc query against the service. Although, I
don't think it's guaranteed to retrieve the cause of the termination. I
have
a utility that will log the sc query result to a log file if it happens
again.

What else can we look at to find the cause of this? When this happens, the
files are left in an inconsistent state, which also have to be
reprocessed.

Thank you in advance.




.



Relevant Pages

  • Re: Custom Service Terminates Unexpectedly
    ... If the service can't handle any abnormal conditions (eg exceptions) then it may be impossible to know. ... Event log under Service Control Manager, ... It appears that some external event caused the service to terminate in this ... a utility that will log the sc query result to a log file if it happens again. ...
    (microsoft.public.windows.server.general)
  • Custom Service Terminates Unexpectedly
    ... Event log under Service Control Manager, ... it was right in the middle of an XSLT transform call. ... It appears that some external event caused the service to terminate in this ... a utility that will log the sc query result to a log file if it happens again. ...
    (microsoft.public.windows.server.general)
  • Re: Terminating program in ProcessWndProcException
    ... NO program should terminate except by user directive. ... One of our best programmers spent six months removing all but one exit() ... A more serious question is where are these exceptions coming from? ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: BizTalk customized error logging
    ... Usually the messages that fail to disassemble or indeed any other error would ... You could use the old EMAB or the EntLib verison and filter the exceptions ... "Alex M" wrote: ... Now there is only event log entries about ...
    (microsoft.public.biztalk.general)
  • Re: AfxBeginThread on each user action X or re-use same thread (w
    ... > SEs to C++ typed exceptions. ... DWORD exitCode; ... MyFunction currently doesn't throw, it could only be dead w/ process still ... running when _se_translator_function, or terminate is added. ...
    (microsoft.public.vc.language)

Loading