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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:01:18+00:00 2026-06-11T19:01:18+00:00

Is there a feasible way to allow an instance of the FileSystemWatcher class to

  • 0

Is there a feasible way to allow an instance of the FileSystemWatcher class to continue to run, even when the application pool shuts down due to inactivity, say overnight? The .NET default is 20 minutes of inactivity.

Ideally, I’d like for the FileSystemWatcher to always listen for file system changes, as the potential for files being transferred in/out of our file store, or modified, is there even overnight when our application pool is shut down due to inactivity.

Thanks.

EDIT: For more context, my original thought was to implement an instance of FileSystemWatcher within my C# web application that will be deployed and run by IIS. It’s functionality will be fairly standard: listening for file creation, file deletion, and file renames.

  • 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-06-11T19:01:19+00:00Added an answer on June 11, 2026 at 7:01 pm

    IIS is really intended to handle incoming requests, and is not suited towards this type of activity.

    If you want the FileSystemWatcher to always work, it would be better to move your code into a standard Windows Service. This will cause it to execute upon the system startup, and continue running, even if IIS is not running or is idle.

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

Sidebar

Related Questions

Is there a feasible way to get my own code run whenever any class
Is there any way to know how many times a instance of a class
Is there a way to read a file's data but continue reading the data
Is there any feasible way of using generics to create a Math library that
I'm not sure if this is feasible or not but is there a way
Short version: Is it easy/feasible/possible to program modal window in Flash (AS3)? Is there
There's a Rails 3.2.3 web application which doesn't use any database. But in spite
I have an idea for a web application that would allow users to create
Is there a way to configure a server or a script to execute a
Is there any way for ActiveX controls to work on Linux? I'd imagine the

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.