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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:21:47+00:00 2026-06-02T15:21:47+00:00

I have not used multi threading much for asp.net. I have a web application

  • 0

I have not used multi threading much for asp.net. I have a web application that uploads a large temp file to folder. I would like to take that temp file and do some other things with it after it is uploaded. Can I do this work on another thread without the user being on the website any more? Thanks for any help or suggestions.

1.User post large file
2.uploading temp to server
3.After upload completes. I would like to run another thread/worker that can run without any user iteration but is trigger by the user.

void uploading(){
//Uploading file To server
}
void Submitclick(){
Start a Thread 
Thread thread = new Thread(DoThreadWork);// does the user still need to be logged in?
Send to another page
}
void DoThreadWork(){Do this in background}
  • 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-02T15:21:48+00:00Added an answer on June 2, 2026 at 3:21 pm

    It’s definitely possible, I’ve used background threads quite a bit in ASP.NET to do some funky stuff. If you have complete control over the server it might be more elegant to run the background code in a separate application or a windows service.

    It’s a better separation of concerns to have your IIS app dealing with just responding to web requests, and it’s not geared up for that.

    Also a warning, if you have a background thread in ASP.NET 2.0 and it has an unhandled exception, the default is to reset the application pool.

    More information here: http://blogs.msdn.com/b/tess/archive/2006/04/27/584927.aspx

    // 3 downvotes?

    Listen, it’s not alway possible to avoid running something in a background thread. I’ve hit this in several situations:

    • I’ve worked in a company with an unreasonable attitude to software
      where we were not allowed to deploy a separate app to handle the
      background processing. I argued for a windows service, but was
      overruled and told to implement it in a background thread. Obviously
      I moved on from that company to a healthier environment, but that is
      the reality is this you have to deal with unreasonable situations
      sometimes.
    • if you’re in a hosted environment you don’t always have the option to offload onto a seperate process.

    The question was if it is possible. I’m answering that question.

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

Sidebar

Related Questions

I have not used ASP.NET Membership and Role Providers before but looking for a
I have not used generics much and so cannot figure out if it is
I have not used Windows Vista. I knew that many APIs have been changed/deprecated
I have not used jquery much yet and not very familiar with it. Trying
I am getting this error on code that used to work. I have not
I have an application which are multi threading. I notice some existing code use
I have not used C++ for a really (really) long time and this question
I have not used many lambda expressions before and I ran into a case
I have not used Twitter enough to become familiar with its terminology or the
I have not used valgrind before, but I need to use it to check

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.