Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Continually Server-Side working progress

Posted on 2011-03-24
3
Medium Priority
?
295 Views
Last Modified: 2012-05-11
Hi,

I need a soluttion for something like this:
1. User start an action that takes a long time (up to hours) at his browser
2. A script sends a callback to the server, server starts the progress and response to the client
3. The user continue working and when the progress is ready the genereted file will be in his folder

So my question is how can I run a task with ASP.NET and keep it running until it's ready also if sessions etc. are expired or user shut his PC down?

Thanks

Andre
0
Comment
Question by:andre72
  • 2
3 Comments
 
LVL 5

Expert Comment

by:Kelmen
ID: 35205462
i would suggest only using the asp.net to invoke/start the process, nothing more.
once the process is done, sent an email to the user.

is this long process can support multiple instances?
typically such app is single-instance. then i suggest use web service configured as single instance to execute the process

your asp.net is just to call that webservice, and forget it.
0
 

Author Comment

by:andre72
ID: 35205613
This sounds well and one instance is fine as it also need high performance.
So you mean something like:
mythread = new Thread(new ThreadStart(action));
mythread.Start();

Would be fine?
0
 
LVL 5

Accepted Solution

by:
Kelmen earned 2000 total points
ID: 35212223
the web service can be configure single instance and one-way/fire-and-forgot

client code calling should be typical. i don't have much details on this, you need to research abit, but i do aware web service part can be configure as such.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Loops Section Overview
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question