Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 762449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:23:47+00:00 2026-05-14T16:23:47+00:00

I have a .Net/c# 2.0 windows service. The entry point is wrapped in a

  • 0

I have a .Net/c# 2.0 windows service. The entry point is wrapped in a try catch block that notifies me of problems and allows the service to continue operating normally yet when I look at the server’s application event log I see a number of “EventType clr20r3” errors that are causing the service to die unexpectedly. The catch block has a “catch (Exception ex)” and does not rethrow the exception.

Each sql commands is of the type “CommandType.StoredProcedure” and are executed with SqlDataReader’s. These sproc calls function correctly 99% of time and have all been thoroughly unit tested, profiled, and QA’d. I additionally wrapped these calls in try catch blocks just to be sure and am still experiencing these unhandled exceptions.

This only in our production environment and cannot be duplicated in our dev or staging environments (even under heavy load).

Why would my error handling not catch this particular error? Is there anyway to capture more detail as to the root cause of the problem?

Here is an example of the event log:

EventType clr20r3, P1 RDC.OrderProcessorService, 
P2 1.0.0.0, 
P3 4ae6a0d0, 
P4 system.data, 
P5 2.0.0.0, P6 4889deaf, 
P7 2490, 
P8 2c, 
P9 system.data.sqlclient.sql, 
P10 NIL.

Additionally

The Order Processor service terminated unexpectedly.  
It has done this 1 time(s).  
The following corrective action will be taken in 60000 milliseconds: 
Restart the service.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T16:23:48+00:00Added an answer on May 14, 2026 at 4:23 pm

    Answer from comments. Glad to have helped. 🙂

    Have you tried adding an
    AppDomain.UnhandledException event
    handler?
    msdn.microsoft.com/en-us/library/…
    Pretty much the problem is you have an
    unhandled SQL exception somewhere in
    your code.

    Not necessarily, but without seeing
    your code or the libraries you are
    using, there is no way to know if the
    exception is occuring in a different
    thread, in a 3rd party library, etc…
    By wiring an
    AppDomain.UnhandledException handler,
    you should at least by able to log the
    exception details and figure out where
    your problem point is. Just cast the
    EventArg to
    ((Exception)e.ExceptionObject).Message
    and you should at least have a better
    idea where your unhandled exception
    is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET Windows service and a .NET Web Application that I would
I have a VB.NET Windows Service that I wrote and it works fine. In
We have taken over some .NET 1.1 Windows Service code that spawns threads to
I have an ASP.NET application and a Windows Service. My ASP.NET application allows for
I have an ASP.NET MVC website that works in tandem with a Windows Service
I have a .NET Windows Service which spawns a thread that basically just acts
I have developed a .NET Windows Service (in VS2010) that needs to: Access shared
We have a Quartz.Net installation running as a Windows Service. That's running fine. We
I have a .net windows service that works it's way through a queue of
I have a .NET Windows service that I would like to port to Mono

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.