473,396 Members | 1,599 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,396 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 1201
> 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.