.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

Handling Long running task in Asp.net ???

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :ASP.Net
 
Hi ,  i am working on Asp.net application with database sqlserver. I have a long running task which takes 50 minutes processing time now in this scenario user cannot wait for this much of time and my web page will also gets expired. basically of long running task does data shifting from one database to another database. In my application multi users can works at the same time this means that users can put multiple requests at the same time. Now my problem is that i want to complete this long running task totally offline which would trigger when user put any request, but what happened when another user put a request at same time this means first request would override by second one. FOR EXAMPLE GOOGLE  mail importing task. if you seen google mail importing task . google provides import your mail from yahoo or others servers when you click on import button then an import task is started and show importing. this importing task runs for one or two days which can be stop by users at any point of time.  this indicates that importing task is totally offline.  I want to implement same functionality in my application. please suggest any way to implement above scenario. Every suggestion would be appreciated. 


View Complete Post


More Related Resource Links

help need for long running task

  
i have wcf service and method which runs very long running task and i have subscription service which let's out all the notifications. From asp.net web page i subscribe for the notifications and call the async method..notifications are being recived by the page (kept a debug and can see). On the web page i kept ajax timer, update panel with a label which refreshes every 10 sec. But asp.net seems to be waiting for async completed even to be fired and then update panels shows me all the notification (no use of notifications as the activity is over). I feel because both are in the same thread, that's why asp.net s behaving this way. Any help you guys can offer?

WPF 4 with SSRS Report Viewer and long running Background Worker Dispatch task.

  

Hello,

I've recently run into an issue with with WPF 4 and the SSRS viewer control with a batch emailing application. See http://www.jenasysdesign.com.au/dnn/Blogs/tabid/71/EntryId/5/WPF-4-SQL-Server-Reporting-Services-processing-application-Memory-Leak.aspx for details of some performance profiling issues I found with this technology stack.

I've got two issues.

Firstly, I implemented a background worker process to handling looping through the 2,800 reports. I found to run the SSRS report viewer to export the report results in a slow memory leak. See Red-gate Ants memory profiler 6 image in the link above. I'm not sure what I need to do to remove weak references with this combination of technology. Any ideas?

Secondly, the following code runs on the background worker process, designed so the user can monitor the progress of the a large batch of report files getting generated.  The catch here is involves using the SSRS viewer to export a reports results requires the Dispatcher.Invoke method to ensure that ReportViewer.xaml screen gets a UI thread, but in the process it interferes with the background workers report progress methods, so the UI doesn't see the progress.  

WPF 4 with SSRS Report Viewer and long running Background Worker Dispatch task.

  

Hello,

I've recently run into an issue with with WPF 4 and the SSRS viewer control with a batch emailing application. See http://www.jenasysdesign.com.au/dnn/Blogs/tabid/71/EntryId/5/WPF-4-SQL-Server-Reporting-Services-processing-application-Memory-Leak.aspx for details of some performance profiling issues I found with this technology stack.

I've got two issues.

Firstly, I implemented a background worker process to handling looping through the 2,800 reports. I found to run the SSRS report viewer to export the report results in a slow memory leak. See Red-gate Ants memory profiler 6 image in the link above. I'm not sure what I need to do to remove weak references with this combination of technology. Any ideas?

Secondly, the following code runs on the background worker process, designed so the user can monitor the progress of the a large batch of report files getting generated.  The catch here is involves using the SSRS viewer to export a reports results requires the Dispatcher.Invoke method to ensure that ReportViewer.xaml screen gets a UI thread, but in the process it interferes with the background workers report progress methods, so the UI doesn't see the progress.  

Use modal dialog for long running task (SPLongOperation?)

  

I have created a ribbon button which downloads selected files from a document library to a temporary folder on the server.  I have created a aspx page with code behind that downloads the items upon clicking the ribbon button using ModalDialog.ShowModalDialog(options) from javascript.

What I would like to do is implement the below javascript to call my aspx page which does the actual work, and to use the ShowWaitScreenWithNoClose dialog to provide an indicator ot the user.

1.  How do I close the showWaitScreenWithNoClose dialog from the download.aspx page code behind?

2.  Is there a way to update the message text of ShowWaitScreenWithNoClose dialog so that I can indicate the name of the document being downloaded?

3.  Is there a better way of calling vb/c# code that downloads files (or other processes) while showing the waitscreen dialog?

var options = {

 url: '/_layouts/myRibbonButton/download.aspx?itemIds=' + ids + '&sourceUrl=' + location.href,

 tite: 'Download Documents',

 allowMaximize: false,

 showClose: true,

 width: 1,

 height: 1,

 

ASP.NET Workflow: Web Apps That Support Long-Running Operations

  

Integrating workflow into ASP.NET applications means communicating with activities via a workflow queue and hosting the runtime in the global application class. We'll show you how.

Michael Kennedy

MSDN Magazine January 2009


Video: Coding a Long-Running Operation Page in SharePoint Server 2007 or Windows SharePoint Services

  
Watch this visual how-to video as you learn to write code to mimic the default long-running operations page (the "spinning wheel") in SharePoint Server 2007 or Windows SharePoint Services 3.0. (Length: 7:56)

Coding a Long-Running Operation Page in SharePoint Server 2007 or Windows SharePoint Services 3.0 (V

  
Watch the video and explore code as you learn how to write code to mimic the default long-running operations page (the "spinning wheel") in SharePoint Server 2007 or Windows SharePoint Services 3.0.

Workflow Runtime and Long Running Processes

  
I am trying to get a handle on the fact that applications have to manage the persistance of workflows directly. in 4.0.  If I set a workflow to run every night at 3:00 AM and then be persisted, how will I know that my application will be awake and ready to do the job.  I know that SharePoint currently uses a timer on the server which fires off every 5 minutes (default). 

Long running WPF application - Garbage Collection

  
Hi All, I have a long running WPF application; users start the application and keep it open for at least 6 hours straight. I spend a couple days with a Memory Profiler, solving a couple of memory leaks. According to the Memory Profiler, all is good now. However, when I run the application, and monitor the Memory in the Windows Task Manager, it only seems to grow. When I create a button to force the garbage collection (GC.Collect()), a lot of memory is freed from the app. My questions: 1. I don't feel like it's a good idea to call GC.Collect() explicitly; is there any case where it is advised to do so? 2. Is it normal that it takes WPF that long to start garbage collecting automatically? Thanks, Koen

"Long Running Jobs" SCOM Monitor Alert Question

  
In SCom Monitor Alert we are receiving this Alert. Yet there seems to be no way of identifying the long running jobs.

Is there an easy way of identifying these jobs.

NicPen

p.s. We are using an enterprise job scheduler (ESP) to schedule batch jobs.

long running workflows

  

Hello,

I am implementing a long running workflow. my workflow may pass by many stages:

started, running ,pending,and Complete.

i am using the PersistableIdle event to unload the wf when it becomes idle, and reloads it later by using the same instance id.

I have a problem: the workflow is not unloaded from memory when i use bookmark.

i want the wf to read the object passed by the bookmark, unloads from memory

and resumes later when i reload it.how can i do this ?Please help me.   

static

By any chance can we able to optimize the below query.. It is running for long time..

  

By any chance, can we optimize the below query..This is running for 2 hrs..As of now, i really don't have any execution plans. 

If i replace "IN" with "Exists", i am saving few minutes. Can someone please optimize the query little more?
SELECT pm.pm_no,
pm.pm_key, 
trunc(pm.last_completion_dt), 
pm.location_name,
loc.unid,
loc.location_desc,
loc.tva_eq_owner_key
FROM 
eam_od_pm_tb pm, 
eam_od_location_tb loc
where 
pm.site_id in ('ALF','BRF', 'COF','CUF','GAF','JOF','JSF','KIF','SHF','WCF', 

.net 4.0 's WWF for orchestrating services and long running transaction

  
Hello,

I know the answer for .net< 4.0 is: USE BIZTALK!!. But I would like to know if something has changed with the remake of wwf and the introduction of dublin.

Would you recomend WWF for orchestration and long running transactions?

Thanks in advance.

Viva el Betis.

Long Running Service Operation & WCF

  

HI

I have a requirement where in my service operation is going to be long running process. I dont want to rely on typical duplex call back mechanism cos these service may be used in non wcf technologies as well. can anyone suggest best practices, approach, alternative to achieve the same

Many thanks

Vishal


SQL Server 2008 - Alerts for Long Running Jobs

  

All,

Back in SQL 2000, we had crazy queries that captured and notified long running jobs.

What is your solution for SQL 2008? Is there anything out of the box or should we still develop our own, using DMVs?

My company just got rid of SCOM, which had an alert for long running jobs right out of the box, and I need to create a new solution for this issue.

Let me know how you're handling this on your environment.

Thanks in advance for the help.


--- Best Regards, Igor Santos - DBA igor.santos@citrix.com

WF 4 - Long running, type selection, hosting

  

I have few questions on Windows Workflow Foundation 4.0 (WF 4.0)

I need to develop an approval system with great amount of flexibility on workflow selection

I do not want to expose workflows to client application as services to consume because it will be difficult to manage which workflow to select, where to

deliver events etc.

Actions are going to be similar (approve, reject) but in different workflows at different places and with different occurrences.

I am planning to expose a WFC service to client, client will provide a logical name, initial data and subsequent commands (approval, rejection) to same

methods on WCF.

WCF component should be intelligent enough to load required xaml WF and either insatiate WF or deliver the event (command) to existing instance using

correlation.

I am looking for some suggestions on possibilities of achieving above (and how), also looking for few confirmation on following

 

1. Can we load XAML workflow file at runtime with following requirement (and how ?)

a. Long running

b. Event handling (approval, rejection)<

SSRS asking for credentials while reports running for long time.

  

We have a report which executes a stored procedure and it runs for 10 minutes.  After running for 5 minutes, the report keeps asking for username and password for 3 times and redirects to unauthorized page.  The website uses WIDE IP for crash and recovery handling, so it has two nodes.  Could some one please help me to figure out what problem it is ?  The SP data is not huge, which produces only 300 odd rows and 20+ columns.

 

Any help will be appreciated.  Thanks.



Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend