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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:08:40+00:00 2026-05-24T22:08:40+00:00

My team is developing an ASP.NET application, which among other things contains an import

  • 0

My team is developing an ASP.NET application, which among other things contains an import functionality. The import will typically be initiated by a user entering some settings in a web page, including the local file to be imported. When the user hits the “import” the file should be uploaded and then imported.

The import can be quite a lengthy operation, so it is not possible to do it directly from the aspx.cs code, it need to be done in some background way. Also it is important that once the file is uploaded, the import is not lost. I would also like the import to start immediately, not having to wait for a service or scheduled task that just checks for available work every X minutes.

What I’ve found as alternatives so far is:

  • Background thread from ThreadPool or similar in ASP.NET. Will mostly work, but if the app pool is recycled the work is lost.
  • Service with a timer that regularly checks a work table in the DB and runs the import. Will work, but either has the delay or causes very frequent requests for work from the DB.
  • Service with a change notification query (don’t know the exact name, but it is possible to subscribe to changes from SQL server).
  • Service getting work items through MSMQ.
  • WCF service, hosted within a system service and not within ASP.NET to avoid recycling. Either the WCF service is called internally from ASP.NET or it is directly exposed and called from the client through AJAX (if a non-IIS-hosted WCF can expose AJAX endpoints).

Are there any other alternatives? Is there anyone with experience of the above alternatives?

  • 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-24T22:08:40+00:00Added an answer on May 24, 2026 at 10:08 pm

    You could have a windows service, which watches the upload directory for changes (e.g. using FileSystemWatcher).

    That way, there would be no (or only minimal) delay until the service starts working and you don’t need any kind of polling from the service.

    As for the settings (entered by the user): either store them in a DB (and query them from the service) or write them to a file as well.

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

Sidebar

Related Questions

Our team is developing a rather big ASP.NET web project which initially started in
My team is developing a large java application which extensively queries a MySQL database
I'm developing an application with a team in .Net (C++) and provide a COM
The application my team is currently developing has a DLL that is used to
I am developing an application for the Mac as a small team (me +
My team is developing a new service oriented product with a web front-end. In
Our team is developing a new product on the base of the old one
This is a weird problem I have started having recently. My team is developing
Our Dev team had been developing enterprise web page more than 2 years ago.
My team is moving from Visual SourceSafe to Subversion soon, while developing/supporting a legacy

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.