Solved

Continually Server-Side working progress

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

628 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