Solved

Continually Server-Side working progress

Posted on 2011-03-24
3
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

751 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