473,804 Members | 3,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1220
> 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 QueueUserWorkIt em 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..jwaon line..com
-----------------------------------------------------------------------
"Nathan" <Na****@discuss ions.microsoft. com> wrote in message news:89******** *************** ***********@mic rosoft.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
2472
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 drawing time. Time is measured in clock ticks (from QueryPerformanceCounter() API). The processor resolution (QueryPerformanceFrequency()) for my
1
4468
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: - serverMainSocket.EndAccept(); - serverMainSocket.Shutdown(SocketShutdown.Both); - serverMainSocket.Close(); My problem is on the first instruction. I don't know what can I put as argument in the EndAccept().
1
2191
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 writing and reading the cache (a Mutex?) Private Function Count(ByVal Guid)As Int32 Static Dim countResults As Hashtable = New Hashtable Static Dim countResultTimestamps As Hashtable = New Hashtable 'Here I want to call...
1
270
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 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?
1
1231
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 syncronous way. The problem is that when i execute the application and click a button to fill the treeview, dont fill anything.
4
3224
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 the page can carry on rendering whilst the call is taking place and also returning the ASP.NET worker thread to service another page request (for scalability). I have developed a very basic asynchronous object (for testing, that reproduces the same...
3
1733
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 from the server. Each request/response can take upto 180 seconds. I am trying to use the asyncronous calls in an ASP.NET C# 2.0 Webcontrol, which displays the returned data. At the moment I am happily using the asyncronous functions and events...
1
1471
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 client application have a web service which gets the notification from server web service (on some task running on server). Is this possible? Does anyone have done it before.
1
1400
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 a field in the merge data file called . It may or may not be blank. If it is not blank, I would like to call a macro after finishing the merge. The macro to be called is equal to the contents of the .
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9582
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10580
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3821
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.