AJAX :: Update Page From Long Running WCF Service

Jan 12, 2010

I have a long-running WCF service that I need to call, but I would like to do is to open modal window (modal popup extender) that simply shows progress and stops the user from interacting on the page until the service returns. What I was trying to do was the following:

1. Click button to activate the process which calls a method in my code-behind.
2. This method opens my modal panel with some pretty animation.
3. I call my WCF service asychronously so that the UI will refresh.
4. Service ends which calls my delegate I setup.
5. My delegate method would then refresh the page with results, and dismiss the model popup.

View 1 Replies


Similar Messages:

Cancel A Long Running Database Insert / Update Operation From UI When Operation Is Being Performed By A Windows Service?

Mar 7, 2010

in my case, It is the windows service which in running the long running insert/update on a table and I need to cancel the operation from my ASP.NET application. In the above link Burnsys suggests that one should kill the Sql server session. Is that really only way and a goood practice to do this? Also, in the same poset can use SqlCommand.Cancel to cancel. However, I am not sure how can I cancel the command from the windows service from ASP.NET application.

View 1 Replies

AJAX :: How To Update Label When We Are Processing Code In The Background For Long Running Process

Aug 25, 2010

I have Requirement to update the label text as we are processing the code (Long running).

Example:

I have Label and button on aspx page.

On button Click Iam calling the AppCode which is going to do long work for me.

I want to update the label text from the appcode (which should reflect in the page then and there.)

I have tryed to pass the text value to the label but it shows the changed text only after the event for the button click is finished.

I tryed using timer but as soon as i click the button the refreshing stops.

I tryed progress template and UpdateProgress without success. (I know we can update at the start and end of proccess using this)

I dont want to use iframe (I know we can do using iframe)

View 3 Replies

Separate Service For Processing Long Running Tasks?

Jan 12, 2011

I would like to makea windows service. whenever the user of my ASP.NET application has to do a time-consuming task, the IIS would give the task to the service which will return a token(a temporary name for the task) and in the background the service would do the task. At anytime, the user would see the status of his/her task which would be either pending in queue, processing, or completed. The service would do a fixed number of jobs in parallel, and would keep a queue for the next-incoming tasks. In addition there would be a WinForms application for system administrator that would allow adding special ADMIn tasks such as "Clean orphaned files" or "archive data of inactive users".

Can you point me to something that can jump start me on this as a whole concept - I know I can google for windows services and I am able to do it myself from scratch but time is of the Essence so maybe you know of something that is already there and i can use block to build out of.

View 1 Replies

Running Long Process In Aspx Versus Windows Service

Aug 13, 2010

Wondering if there is a performance difference between letting a long running process hang in asp.net vs running the process via a windows service. I have done this once before and the windows service was much quicker and didnt bog down my system, whereas the asp.net request seemed to wreak havoc.

View 1 Replies

Web Forms :: Timeout Error Continues On Long - Running Web App Supposedly Already Configured To Accommodate Long

Jun 16, 2010

I've developed a web application to accept video file uploads and then pass them to a backend service on an external server. The application runs without error on the visual studio debugging webserver, but once on a production iis 6 or 7 server, yields a timeout error at about a consistent amount of time into handling a large upload. Specifically, it errors in the middle of transferring the video file to the external server, once the application has successfully received it from the client. I'm aware of several timeouts to be configured related to the problem, and have done so. The application's web config has been tested with one or both of the following settings

<system.web>
<httpRuntime executionTimeout="9999999" maxRequestLength="2048000" />
</system.web>
and
<configuration>
<location path="default.aspx"> (the page at issue that's timing out)
<system.web>
<httpRuntime executionTimeout="9999999" maxRequestLength="2048000" />
</system.web>
</location>
</configuration>

And within the initialization of the webrequest made to the external server to send the video received from the client browser:

HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
httpWebRequest.ContentType = "multipart/form-data; boundary=" + boundary;
httpWebRequest.Method = "POST";
httpWebRequest.Timeout = System.Threading.Timeout.Infinite;

So with the execution time limits on both the webform as a whole and the connection made to the external server, I'm at a loss for what timeout is left unconfigured, or how to determine such, when I continue to get the following error: Unexpected error executing Brightcove Upload:...........................

View 3 Replies

AJAX :: Sending Updates To The User On Long Running Process?

Jan 30, 2010

I've been having a difficult time with this. I have an asp.net page. The user hits the "Run" button and I have code IN AN ASSEMBLY, not in the APP_CODE folder that is called and runs a long process that moves product info from a file into the database. While the user waits, I would like them to see status updates like what product the import process in on and status info. I'm assuming I'd break off into another thread and use Ajax but I have no idea how to do this.

View 4 Replies

Ajax - Pattern For Long Running Tasks Invoked Through Webpage?

Apr 1, 2011

I need to invoke a long running task from an ASP.NET page, and allow the user to view the tasks progress as it executes.

In my current case I want to import data from a series of data files into a database, but this involves a fair amount of processing. I would like the user to see how far through the files the task is, and any problems encountered along the way.

Due to limited processing resources I would like to queue the requests for this service.

I have recently looked at Windows Workflow and wondered if it might offer a solution?

I am thinking of a solution that might look like:

ASP.NET AJAX page -> WCF Service -> MSMQ -> Workflow Service *or* Windows Service

View 3 Replies

C# - Showing Loading Image/progress Bar For Long Running Processes In Ajax

Mar 19, 2011

How can I show loading image for the user while executing long running process in an ASP.Net Ajax application? Is there a way other than using Page Methods? Any ideas?

View 2 Replies

Databases :: Losing Connection When Running Long Running Oracle Procedure?

Jul 1, 2010

I am executing a long-running Oracle stored procedure from .NET. The procedure takes about three hours to run. Ideally, the user should be able to kick off the procedure, close the browser, and come back later to check the results.

The problem is that the connection to the Oracle procedure is lost after exactly an hour. As you would expect, the Oracle procedre runs to completion if it is executed from SQL Plus. Strangely enough, it will also run to completion if I run in debug mode on my local machine (I start two threads, one of which executes the procedure. I set a breakpoint on the second thread).

Here is my connection string:

data source= (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=serverx)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=TestSID)))

Some relevant sections from web.config:

<sessionState mode="InProc" cookieless="false" timeout="3000" stateNetworkTimeout="72000"/>
<httpRuntime executionTimeout="18000" maxRequestLength="2097151" />

Any thoughts as to why the connection is being lost in exactly an hour, and what I can do to maintain the connection until the procedure finishes?

View 1 Replies

C# - How To Run Long Running Operation Asynchronously And Show Loading For The User In Ajax And Poll For The Result

Mar 24, 2011

heavy operation which takes long time to be completed in my asp.net application. I don't want to run the entire operation in one request which may result in a TimeOut error. Instead I want to invoke the operation in a separate thread and poll for the result every x seconds. How can I do this?If the operation gets completed I need to register a script in the ajax postback to hide the loading panel and show the content. However I'm not able to register new scripts and invoke it during ajax postbacks.

View 2 Replies

AJAX :: Update Panel Running JavaScript Fails On Update?

Aug 6, 2010

I have the following function that is trigered from an asp dropdownlist when an item is selected.

[code]....

The script sets a url depending on the selection from the dropdownlist.

It all works ok, but then the update panel updates and the javascript photogallary breaks.

How do I prevent this from happening.

View 17 Replies

Long Running Web Page - Generate A Text File Conforming To A File Specification?

Jul 8, 2010

I have an application I am trying to write that generates a text file conforming to a file specification, and the file could contain thousands of lines. This part is easy. The more challenging part for me is the user interface. It needs to be a web interface with various options to affect what data gets on the file; this part is no problem. The process for generating the file, though, could take a little time depending on the amount of data , and I would think the web page would time out.

What options do I have for the UI? Could I create some sort of service that the page calls and runs in the background? When the process errors or is finished, I'm thinking there could be an email sent out, or even messages displayed on the page.

View 4 Replies

IIS 6/7 Threading - Long Running Aspx Page Keeps Other Aspx Pages From Loading

Oct 11, 2010

I wrote a test page that does a bunch of busy work in a method called at page load. This process as I have it now takes around 12 seconds.

If I try to load another page while the first long running page is loading, this second page doing nothing except writing out a world, it doesn't load until the first long running page is finished.

Why is this the case? I would think IIS would be able to handle multiple concurrent connections, it seems crazy that one long running page would stop every other page in the application from loading. I must be missing something or not understand how IIS works.

I would think multiple independent requests would be spawned on different threads. Is this only the case if the requests are from different sessions entirely? Are all requests from a single session bound to a single thread?

View 1 Replies

Web Service Not Running From Aspx Page But Running Fine With Aspx Page

Sep 7, 2010

I have a web service which is running fine when i call it from a handler page (.ashx).

My web service returns a zip file.

But when i call the same code from my aspx page then i get a corrupted zip file. Code for calling is below and is same in both ashx class and aspx page.

[code]....

View 1 Replies

AJAX :: Running Web Service From Javascript?

May 18, 2010

I'm trying to learn AJAX but I am having trouble getting things working. I downloaded an example app from the web that was written in C# and have got it working perfectly, the next stap was to convert it into VB but for some reason this does not work. I keep getting a "Error: 'myServices' is undefined " error message on the web page. Try as I might I cannot cure this and I know it is something so simple i'm just looking past it.

I'm trying to get some autotext functionality working but I've cut the code right down just to try and get it working, everything seems to work fine apart from the webservice call which returns the 'undefined' error. If I click the button on the web page the code behind is invoked and the webservice code is also run without problems. I just can figure out why I can't run the webservice directly from the web page.

The code

Default.aspx html/javascript
<%@ Page Language="VB" AutoEventWireup="True" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>

[code]....

View 3 Replies

AJAX :: Check Whether Service Running Or Not Through Code

Jun 10, 2010

How can we know from the client, whether web service is running or not? I mean through the code

View 1 Replies

C# - Connection Reset With Long Running Process?

Mar 18, 2010

In an asp.net web form, I keep getting a connection reset error message. The page is doing a some long running processing (about 2-5 minutes).

I have no problem when the web request comes from the same machine as the web server. But when the request originates across the network, I get a connection reset error about 1:30 or 2 minutes into waiting for a response.

I have set the in web.config for this application and put the application it's own application pool.

What else can I try?

Edit

The purpose of this page is to accept input from the user, calculate something, and send the result back to them. The long running calculation isn't something I can offload until a later time.

View 2 Replies

Multithreading - .net ThreadPool - Long Running Operation.

Jan 27, 2010

My application is a asp.net 3.5 running on iis 6 (windows 2003)

This application is serving 1000's of users daily (100-500 users online).

I want to send an email newsletter to customers weekly.

Around 200,000 emails every time.

This is the code im using:

ThreadPool.QueueUserWorkItem(new WaitCallback(AsyncProcessMailerQueue), null);

private static void AsyncProcessMailerQueue(object data)[code]....

When testing this locally (on my dev machine) i see the application is working alot slower.

Is there a better way to write this code? Should i use ThreadPool.QueueUserWorkItem or create a new thread using Thread t = new Thread(new ThreadStart(DoWork)); ? Will it be better to create a totally seperate application for the purpose of sending the newsletters. will that help if ill run this application on the same machine?

i've seen other posts here talking about ThreadPool vs Thread but its seem no one is sure which is better.

View 3 Replies

How To Make A Call To A Potentially Long-running Operation

Jul 23, 2010

When an ASPX page needs to make a call to a potentially long-running operation (lengthy DB query, call to a remote webservice, etc.), I use RegisterAsyncTask, so the IIS worker thread is returned to the pool, rather than being tied up for the duration of the long-running operation. However ASMX webservices don't have a RegisterAsyncTask function. When an ASMX webservice needs to call a potentially long-running operation, how can I implement the same behavior as RegisterAsyncTask? Note: the ASMX webservice is implemented as a script-service: returning json to a direct jQuery/ajax call. Therefore, I cannot use the "BeginXXX" approach described by MSDN, since that implements the asynchronous behavior within the generated client-stub (which isn't used when calling the webservice directly via ajax). EDIT: Adding source code: implemented the BeginXXX/EndXXX approach listed in John's answer. The synchronous "Parrot" function works fine. But the asynchronous "SlowParrot" function gives an internal server error: "Unknown web method SlowParrot"

WebService1.asmx:

[code]....

View 2 Replies

How To Improve Progressive Enhancement For Long-running Tasks

Nov 2, 2010

I'm looking for ways to improve a web page that initiates a long-running (>2 minutes) server-side task. The current version of the page just clocks for the full duration of the task, which can be very frustrating to the user.

I already have a few ideas about how I could improve the user's experience, but they all would involve the use of AJAX to some extent. Because of previous experiences that I've had on this project, I know that not all users have JavaScript enabled or available.

Assuming that the server-side process has already been optimized as much as possible, what else could I do to improve the experience of all users as much as possible?

View 2 Replies

How To Show Status To User For Long Running Process

Jan 28, 2010

Note:- i don't want to use updateprogress etc. control of ajax

on button click, long task(e.g thread) runs in my webpage for about 4-5 minutes.I want to show status to user either by a processing image through javascript(image must be shown in a certain part of page other part of page will remain intact) or an exact status of process if possible. i have tried a lot but all in vein.

View 5 Replies

Architecture :: SOA - Major And Minor Things To Take In Long Running?

Mar 2, 2010

I am using SOA architecture, any one guide me what major and minor thing we need to take in long running.

View 3 Replies

Web Forms :: Displaying Progress When Running Long Code?

Jun 11, 2010

I have a report that takes a couple of minutes to generate.What I am trying to do is display a progress indicatior onscreen (progress bar or spinning circle) while this is running.I was thinking of using javascript to display the progress indicator but am not sure how to get started on this. am using ASP.NET 2008, C#.

View 8 Replies

C# - Running Long Process: Indexing 5GB Docs With Lucene?

May 14, 2010

Situation:I have an ASP .NET application that will search through docs using Lucene. I want to run the initial indexing (the index will be incremental after the initial run so there wont be need to index the whole directory again in future). Currently, I have about 5GB of docs (45000files).Problem: My application times out before completing the process. I have altered the TimeOut like this:HttpContext.Current.Server.ScriptTimeout = 200000;but it still does not complete the process.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved