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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:46:47+00:00 2026-05-17T21:46:47+00:00

I have an IIS 6.0-based C#/ASP.NET web site with a SQL server backend. I

  • 0

I have an IIS 6.0-based C#/ASP.NET web site with a SQL server backend. I want to generate some computationally expensive reports (summaries, search engine indexes, etc…) in idle CPU time. I need the reports to be generated from WITHIN the IIS App Pool so it knows the proper configuration settings and (harder to fix) avoids the nightmarish security restrictions I’ve been placed under.

Can I start threads inside the AppPool’s process that won’t tie up the CPU, so it can continue serving requests unfettered? If so, how? What code and libraries?

I imagine it involves ThreadPool and thread priorities, but I couldn’t find good coverage of low-pri threads and their interaction with the IIS web server and App pool.

[EDIT] http://msdn.microsoft.com/en-us/magazine/cc163854.aspx#S7 discusses using a Timer for this but doesn’t directly state that the .NET framework will insure that the Timer thread is low-priority. This might be a solution, but is that assured?

[EDIT] This guy talks about important exception-related issues: http://flimflan.com/blog/SafelyRunningBackgroundThreadsInASPNET20.aspx

[EDIT] Interestingly, Stack Overflow itself seems to use IIS background threads for my purpose: https://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/... in the comments, everyone says their (no longer used) technique sucks, but this one in the comments makes sense to me…

  • 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-17T21:46:48+00:00Added an answer on May 17, 2026 at 9:46 pm

    As best I can tell, amazingly, there is no good answer. The best answer I can come up with is to run background threads in IIS, and have a separate polling requestor occasionally pinging the server to make sure it’s awake. If anyone comes up with a better answer than this, I’ll reassign the checkmark though…

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

Sidebar

Related Questions

I have some static images in a folder on my IIS 6-based website that
I have an IIS 6 server with a virtual directory pointing to a network
I have a IIS server running on Windows Server 2003. The server hosts multiple
I have IIS 5.1 installed on Windows XP Pro SP2. Besides I have installed
This question is about App domains and Sessions. Is it possible to have IIS
I have a default IIS 6 install and I can access only .html files.
Do I have to restart IIS if I drop a new DLL in the
When hosting a WCF service on IIS you have an option of manually configuring
I am running the free version of Helicon ISAPI Rewrite on IIS and have
I have a WCF service running on the IIS with a ServiceHostFactory. It's running

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.