Solved

Continually Server-Side working progress

Posted on 2011-03-24
3
287 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 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now