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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:38:04+00:00 2026-05-17T15:38:04+00:00

I have an ASP.NET website with ASPX pages and ASMX web-services. I want to

  • 0

I have an ASP.NET website with ASPX pages and ASMX web-services. I want to perform a server side clean-up operation which can be relatively time-consuming (deleting temporary files). For reasons I won’t go into, it is important that no requests (ASPX or ASMX) are processed whilst this operation is in progress.

Ideally I’d like to perform this when there are no requests. What is the best way to do this?
I’m thinking of one of the following:

  1. Determine when there are no requests, then start the operation but stop the operation as soon as a request is received. Is this even possible? Can anyone suggest a mechanism for this?
  2. Perform the operation each time the ASPNET worker process recycles. If so is there an event for this? Does Application_Start get called each time ASPNET worker process recycles?
  3. Schedule this operation routinely (e.g once a day) and suspend all requests during this period. Is there a way to automate suspending requests whilst my operation is in progress?

Additional:

I expect the operation should be performed once per day and will take up to one minute. I want to build this into my application so it is fully automated. The files are on the web server. I have full access to the webserver.

  • 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-17T15:38:05+00:00Added an answer on May 17, 2026 at 3:38 pm

    If you need to disable requests, you could use a flag in session/database to note that the maintenance is under way. Then in your code, you could display an error page when a request comes in while that flag is set. You could even evaluate the request and have a “black list” of urls that cannot be hit while maintenance is underway.

    As for kicking it off, if you use the database flag solution, you could use a Sql Server job to do it all, including scheduling it.

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

Sidebar

Related Questions

I have an ASP.Net web site (ASPX and ASMX pages) with a single web.config
I have an ASP.NET application that's made up of several .aspx pages. I want
I am developing an ASP .Net website. I have created 2 ASPX pages and
Let's say I have two pages on the same ASP.NET C# WebSite. Page1.aspx does
I have a asp.net website, there is a searchResult.aspx, it runs a sql script
I have an ASP.NET web site with something similar to the following code: .aspx
We have a ASP.NET website project. In the past, we had been using asmx
I have an ASP.NET website containing the following <asp:UpdatePanel ID=UpdatePanel1 runat=server > <ContentTemplate> <asp:Label
I have an asp.net website (SQL Server, Windows 2003, IIS 6) and I am
I have an ASP.NET Website. I want to restrict the Admin Folder to only

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.