473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

asyncronous call times out before finishing

On my .NET web project I am trying to make an asyncronous call to a function
using IAsyncResult. The function will process for about a 1/2 hour. before it
completes, the process abruptly ends as though it has timed out. I'm not sure
what is timing out. Would it be the page I am making the async call from? Or
possibly the connection/command objects I am using to connect to my sql db?
Jul 22 '05 #1
1 1200
> the process abruptly ends as though it has timed out

How do you know it's timing out and has not just finished processing?

If you are starting the async process from a Request in an ASP.NET application by using a Begin* method, and later calling an End*
method, the End* will block execution on the Request thread until the async process completes. This, of course, may cause the
Request to timeout since the client will not receive a response until the async operation has completed.

You can prevent this by using QueueUserWorkItem on the ThreadPool class instead of using a Begin* method, or you can create a
background Thread to do the job. Either way, the client will receive a response while the server continues processing
asyncronously.

hope it helps,

--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"Nathan" <Na****@discussions.microsoft.com> wrote in message news:89**********************************@microsof t.com...
On my .NET web project I am trying to make an asyncronous call to a function
using IAsyncResult. The function will process for about a 1/2 hour. before it
completes, the process abruptly ends as though it has timed out. I'm not sure
what is timing out. Would it be the page I am making the async call from? Or
possibly the connection/command objects I am using to connect to my sql db?

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Gustavo L. Fabro | last post by:
Greetings! Getting straight to the point, here are the results of my experiment. I've included my comments and questions after them. The timing: (The total time means the sum of each line's...
1
by: il RicercatoreSbadato | last post by:
title: asyncronous Socket and EndAccept() question: hi to all, I am working with a server that uses the sockets in a asyncronous way. When I want to STOP the server I do the following: -...
1
by: Allan Ebdrup | last post by:
I'm inside a function where I have a static cache, when the cache needs to be updated I want to do it asyncronously, because updating the cache takes a while. I want to use thread safety when...
1
by: Nathan | last post by:
On my .NET web project I am trying to make an asyncronous call to a function using IAsyncResult. The function will process for about a 1/2 hour. before it completes, the process abruptly ends as...
1
by: Josema | last post by:
Hi, I made an application that foreach directory that found in the hardisk create a node into a treeview. Of course, to avoid that the user interface gets blocked, i use a handler in a...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
3
by: OJ | last post by:
Hi, I have written a small C# 2.0 DLL which acts as a client to a Socket based server over the internet. I have written both synchronous and asynchronous methods to connect, send, and receive data...
1
by: -pb- | last post by:
Hi, Is it possible to develop a web service which can send asyncronous notification to the client application using Web Service and not the Remoting? What I really want to know that, if each...
1
by: slickdock | last post by:
My vb code saves a record as a Word merge data file and merges it with a Word merge form file. Once the merge is complete, I would like the code to make this determination: There will always be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.