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 136223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:54:52+00:00 2026-05-11T06:54:52+00:00

I just read this: What is the benefit of developing the application as a

  • 0

I just read this: What is the benefit of developing the application as a windows service? but I’m still unsure of when to use a windows service.

I have a couple tasks that need to be run at intervals (i.e. every 5 minutes). Which project type should I use? Are there any examples of the types of applications that should be Windows services?

  • 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. 2026-05-11T06:54:52+00:00Added an answer on May 11, 2026 at 6:54 am

    For any scheduled task, I would usually recommend a Windows Service, for the following reasons:

    • A Windows Service will run even if a user is not logged into the PC (will run even if the server is sitting at the login prompt) (***Note – this may depend on the version of Windows you are running).
    • A service can run as high-authority accounts such as Network Service or Local System, or a User – they have more configurability in that regard
    • A service also comes built in with options for starting, stopping, restarting, and pausing while running (sometimes)
    • You can also set up failure conditions for services, like if it fails have it auto-restart

    As far as other examples of applications that can be windows services, a lot of times they are useful for applications such as remoting – you can have a service run a remoting server that clients connect to. Obviously very useful for data processing tasks that you want to run in the background as well, or processes where you want to send an email on certain conditions, etc.

    In general I’ve always found scheduled tasks to be much more fragile and unreliable. And unless you have them log properly, often harder to debug.

    In reference to the bug with the Timer – if you read the bug report on MS’s site, you can see that it is caused when you call ‘Stop’ inside the Timer_Elapsed event. The answer to this is simple – don’t call stop. Instead, wrap the whole thing in a check for a ‘IsRunning’ boolean and only run if IsRunning is false. Even if there wasn’t an issue with the timer, you need to do this anyway because the timer might re-fire during your execution if your execution takes longer than your timer interval.

    Anyway, I still think using scheduled tasks is a weak solution and gives me flashbacks of Windows 95.

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

Sidebar

Related Questions

I just read this post about why new-line warnings exist, but to be honest
I just started to read about this new technology... Does someone have some knowledge
I have just read this [very nice] small tutorial about MYSQL error handling. I
I just read this requirement on a job listing: Aware of the pitfalls of
I just read this: http://haacked.com/archive/2008/11/20/anatomy-of-a-subtle-json-vulnerability.aspx I was under the impression that overwriting Object or
I just read this article: http://www.acunetix.com/websitesecurity/upload-forms-threat.htm which discusses some of the security risks involved
I just read this question and stumbled upon the following quote: Scala treats ==
I've just read this description of the Android Support Package / Compatibility Library... http://developer.android.com/sdk/compatibility-library.html
Just finished read this post by Greg Young, where he is talking about Microsoft
I just read two articles over this topic which provide infomration inconsistent, so I

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.