Re: Custom Service Terminates Unexpectedly
- From: JMZ <JMZ@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 Mar 2009 05:33:02 -0700
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.
- Follow-Ups:
- Re: Custom Service Terminates Unexpectedly
- From: Dave Patrick
- Re: Custom Service Terminates Unexpectedly
- References:
- Custom Service Terminates Unexpectedly
- From: JMZ
- Re: Custom Service Terminates Unexpectedly
- From: Dave Patrick
- Custom Service Terminates Unexpectedly
- Prev by Date: Re: Disable recycle bin on Windows Server 2008
- Next by Date: Re: Server 08, ghost to smaller drive/partition?
- Previous by thread: Re: Custom Service Terminates Unexpectedly
- Next by thread: Re: Custom Service Terminates Unexpectedly
- Index(es):
Relevant Pages
|
Loading