System.IAsyncResult Interface
Information   Base Types   Related Resources

Represents the status of an asynchronous operation.

  • Namespace: System
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: mscorlib.dll

  • View this type on MSDN
  • View this type on WinFX 247
    Articles (36)Discussions (393)MembersRotorChanges
    Discussions

    Page: 12345678910111213141516
    problem with retrieving xml document (VIP replies)
    microsoft.public.dotnet.xml
    Hi, I am writing an application to retrieve RSS feeds from websites. While doing so I get the following error, Unhandled Exception: System.Net.WebException: The remote server returned an error: (407) Proxy Authe ntication Required. at System.Net.HttpWebRequest.CheckFinalStatus() at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.HttpWebRequest.GetResponse() at CRTo...
    problem with validating XHTML 1.1-documents (VIP replies)
    microsoft.public.dotnet.xml
    I'm trying to write a program for validating XHTML 1.1 documents against the XHTML 1.1 DTD (which is actually the same as validating an XML file) but I always get a "(404) Not found" error. This is the program itself [C#]: ******************************************************************** using System; using System.Xml; using System.Xml.Schema; namespace ValidatorTest { class SimpleValidator { [...
    Problems with Asynch Processing in ASP.Net (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    This is my first attempt as asynchronous processing. I have created a small test app as proof of concept, but I am having one proglem. In the example (code listed below), my callback routine has two problems: 1. It runs TWICE; and 2. While it seems to update the web page controls, the results never show up on the page. I am using delegates per a couple of examples I found on MSDN and elsewhere. Wh...
    Properly returning a collection through a web service (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webservices
    What am I doing wrong? I have been working on this for many days, and I am almost there. I have a collection of structures, that work great when working directly with a Winform Application. They even work great in a web service, it is when I try to get the returned collection into a proper collection. I am not sure how much sense that makes. Here is the code I have: Dim objWS As New BBSStructuresW...
    Questions about Asynchronous Use of Webservice (VIP replies)
    microsoft.public.dotnet.framework.webservices
    I am working on a winform application that will require calls to webservices. Some of these operations will take some time. I am thinking about calling the asynchronous versions created automatically by dotnet when I set my web reference (ie BeginXXX and EndXXX). I have some questions about this though. 1. What happens if I never call EndXXX? Let's say my operation (XXX) performs updates to a data...
    Reload Page Command (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    1. I have a chain of six asynch callbacks initiated by a button, and want the page to refresh at the end of each callback to display A. Results of a SQLServer query showing cumulative running time, and B. A progress bar. 2. I have this working with a refresh timer: META http equiv "refresh" content "5" 3. However, the blinking of page reloads is annoying, and I'd prefer to have the page reload at ...
    Reload Page in Async Callback (VIP replies)
    microsoft.public.vsnet.general
    1. I have a chain of six asynch callbacks initiated by a button, and want the page to refresh at the end of each callback to display A. Results of a SQLServer query showing cumulative running time, and B. A progress bar. 2. I have this working with a refresh timer: META http equiv "refresh" content "5" 3. However, the blinking of page reloads is annoying, and I'd prefer to have the page reload at ...
    Retrieving information over the Internet on .NET (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.controls
    Hi, here's the info: I have a problem with retrieving information from a file over the internet on .NET and I hope that you will be able to help me. When I try to retrieve information from a file, say an xml file, over the internet, I get the following error : The underlying connection was closed: An unexpected error occurred on a receive. The StackTrace is: at System.Net.HttpWebRequest.CheckFinal...
    reuse method delegate in callback (VIP replies)
    microsoft.public.dotnet.framework.clr
    Hello. I'm using a method delegate and calling BeginInvoke with a callback. I'm passing the delegate and callback in a data holder class as the state object. In the callback, I'm processing my stuff and wish to call BeginInvoke again. Is it safe to reuse the same instance of my method delegate (and callback delegate) in this call? // Initial call somewhere MethodDelegate md new MethodDelegate( thi...
    Serialization Question (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi, i have a StreamWriter that hold a System.Net.Sockets.NetwrokStream and the StreamWriter Object Hold An ArrayList which i would like to Serialize And Send it back to the client via the StreamWriter.Flush() Dim writer As New IO.StreamWriter(System.Net.Sockets.TcpClient.GetStream) writer.Write(myArray) Dim binF As New BinaryFormatter how can i Serialize it ? Thanks! T: )
    Setting focus in OnLoad not working (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    Hello I have a few forms where I want to set the focus to a specific control thats not the first one in the taborder. Ive tried to do that in OnLoad but that doesnt work, the focus reverts to the first control. In one form where I just want the focus to change from a tabcontrols tabs to the first real control I managed to get it to work by setting the focus in the VisibleChanged event. But in anot...
    Setting ToolTip asynchronously -> application hangs (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.controls
    Hello, I'm having the following problem. In a Timer.Tick event I'm invoking a sub as follows: Delegate Sub AsyncNORs() Private AsyncResNOR As IAsyncResult Private Sub tmrUpdate Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrUpdate.Tick Me.tmrUpdate.Enabled False If AsyncResNOR Is Nothing OrElse AsyncResNOR.IsCompleted True Then Dim RemoteDel As New AsyncNORs(AddressOf ...
    ShowDialog (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi All, I'm having a problem displaying a form as a modal dialog window, when I call the code below from one part of my program (a right click menu) it works fine, but when I call it from within another Sub, the new form displays but I can click back to the main form so the dialog window no longer has the focus. Here is the code I am using, does anyone know why this would happen? Dim fAbout As frm...
    SoapClientAsyncResult bug or by design? (VIP replies)
    microsoft.public.dotnet.framework.webservices.enhancements
    The SoapClientAsyncResult class is handling a Request/Response message workflow through the messaging infrastructure based on the Begin/End design pattern. Using this class for the custom transport (for instance: soap.msmq) makes the following limitations: the ReplayTo endpoint's scheme has to be the same than the Sender.Destination endpoint, so when the Request has been sent via a soap.msmq trans...
    Socket handles during connection errors - C# (VIP replies)
    microsoft.public.dotnet.framework
    I've got a problem with a System.Net.Socket when failing on connect. Each time I attempt a connection, 3 handles are allocated, and when the connect fails only 2 handles are released. If left retrying over a long period of time the extra handles build up to several thousand quite quickly. Here's the C# code: private void StartConnect() { // Allocate 1 handle for socket Socket y new Socket(AddressF...
    Socket Help (Client/Server App) (VIP replies)
    microsoft.public.dotnet.framework.sdk
    I have made a client server app in VB.Net. I used Tcpistener in server app and TcpClient in client app. My server supports multiple clients. There is a separate thread for each client that connets to the server so they can exchange msgs. The problem i m facing is that when i close the Client app the client socket on the server side dose not close. I ckeched it by retreiving the protected property ...
    Socket Question (VIP replies)
    microsoft.public.dotnet.distributed_apps
    Tring to use Sockets, following examples from online doc, BeginSend() and BeginConnect. Got this error for Async Send Receive The type or namespace name 'Async Send Receive' could not be found (are you missing a using directive or an assembly reference?) I can not find it anywhere from the library. Anyone know where is it from? FYI, here are part of the C# code: using System; using System.Net; usi...
    Socket Server - Client IP address and Name (VIP replies)
    microsoft.public.dotnet.general
    Good Morning, I have created a Socket Server with the following Code: Private Sub ReceiveCallBack(ByVal ar As IAsyncResult) Dim sb As SocketAndBuffer CType(ar.AsyncState, SocketAndBuffer) Dim test(1) As String Dim numbytes As Int32 sb.Socket.EndReceive(ar) Dim msg As Byte() Encoding.ASCII.GetBytes(strHtml) If numbytes 0 Then ' Convert the buffer to a string Dim Receive As String ASCII.GetString(sb...
    Socket Server Problems (VIP replies)
    microsoft.public.dotnet.framework
    I'm trying to do async socket IO in a socket server in C# and I'm having trouble on the receive side of things. I've tried variations of the code below and I just can't seem to get it to work. I think my receiveEvent.Set() calls may be misplaced among other things. EndReceive() gets called when the first message is sent. What I want it to do is to continue to receive until the entire message has a...
    Socket.BeginReceive() Problem (Asynchronous Socket) (VIP replies)
    microsoft.public.dotnet.distributed_apps
    Hi every body, I wrote a Asynch Server using ManualResetEvent.Reset(), ManualResetEvent.Set(), ManualResetEvent.WaitOne() events . I'm receiving a Message (Example: "Hello Word") without Terminator (No Char or String Terminator like EOF ). So When I Receive my Message ((Example: "Hello Word") ), My seconde call "handler.BeginReceive()" will not call the ReadCallback() delegate. Is there any way to...
    Stop a function (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I made a program that generate random numbers and put it in a listbox when the user click go. The problem is: how can i made a button stop, to stop the method that is running??? []s...
    strange problem with Asynchronous call (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi Everyone, I've spent hours investigating why my Async (one way) call wasn't invoking the method on my server. Basically, if I remove " Console.ReadLine() ", the method DOESN'T get invoked. Can anyone tell me why? Does the call require a pause? (ErrorInformation is a serializable struct for those who are wondering) Here's my code: private void Write(ErrorInformation ei) { HttpChannel channel new...
    Stroring Method in Hashtable (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hello Everybody: I am creating a client server application Asynchronously. I want to store the BeginAccept method in a Hashtable. But I am getting errors. Can anyone guide me what is wrong and how to store it in a hashtable. Thanks, Rahil Socket sckt m socListener.BeginAccept(new AsyncCallback ( OnClientConnect ),null); sockettable.Add(connectId, sckt); The error I am getting is Cannot implicitly ...
    System.InValid Cast Exception -Pls guide (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hello everybody: I am creating a client server application Asynchronously. I am adding the asynchrous socket to the hashtable. IAsyncResult asyncSkt m socListener.BeginAccept(new AsyncCallback(OnClientConnect), null); sockettable.Add(connectId, asyncSkt); Now I want to access the connectId from the hashtable. Socket socket ( Socket)sockettable[connectId]; But I am getting System.InValidCastExcepti...
    System.Net.WebException (VIP replies)
    microsoft.public.dotnet.framework
    Hi, I m trying to connect to a HTTP Server using the HTTPWebRequest Class but I'm getting the following error: System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server. System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server. at System.Net.HttpWebRequest.CheckFinalStatus() at System.Net.HttpWebRequest.EndGet...
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com