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

  • SEARCH
  • Home
  • 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 6177305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:15:01+00:00 2026-05-24T00:15:01+00:00

We have a .NET Windows Service that occasionally shuts down on one particular server,

  • 0

We have a .NET Windows Service that occasionally shuts down on one particular server, about three times in the last month. Logging shows that the OnStop method is being called, so I don’t think the service is crashing. However, we don’t know what’s shutting down the service.

Is there any way to find out what’s shutting down the service? Is there anything I can log during OnStop? The Windows Event Viewer just shows application shut down and the security log does not show any user account authenticated at the time.

The service is running in .NET 3.5 SP1 on Windows Server 2003 SP2 (5.2.3790).

There are no service dependencies. This service doesn’t depend on any other services and no other services depend on this 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-24T00:15:02+00:00Added an answer on May 24, 2026 at 12:15 am

    There is no way to tell from within the service since this called from the SCM – whoever asked SCM to stop your service isn’t visible to the service…

    I think your main option is checking the EventLog around that time… are other services being shutdown too ? is any scheduled taks running etc. ?

    A “rather dirty” option (last resort/desperate) would be to set CanStop to false… in this case there will be someone seeing a problem in stopping your service and “hopefully” ask you why your service is not stoppable…

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

Sidebar

Related Questions

I have a .Net framework 1.1 Windows service that works on one server, but
I have a multithreaded .NET Windows Service that hangs intermittently -- maybe once every
I have a VB.NET Windows Service that I wrote and it works fine. In
I have a .NET Windows service and a .NET Web Application that I would
I have a very simple windows Service that is developed in vb.net 2008. When
We have taken over some .NET 1.1 Windows Service code that spawns threads to
I have an ASP.NET web service that I can access via a windows program
I have an ASP.NET MVC website that works in tandem with a Windows Service
I have a windows forms client that consumes an ASP.net web service. It's my
We have about 7 app servers running .NET windows services that ping a single

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.