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
    Question on Delegate
    microsoft.public.dotnet.framework.compactframework
    Hi, I am learning how to use delegate and invoke a method asynchronously, below are code snippet from my simple "Hello World" example program with one Form and one Class. I test it on Pocket PC 2002 emulator, but I keep receive NotSupportedException. Can anyone teach me where did I do wrong? public class HelloWorld { public HelloWorld() {} public string SayName( string name ) { for (int i 0; i 10;...
    Raising an Event in a Delegate causes problems
    microsoft.public.dotnet.framework.remoting
    I have an asynchronous call to a remote procedure that is invoked thru BeginInvoke. The problem is that in the Delegate if I throw an event before the CallBack function exits, the CallBack will get called multiple times and error out with the following Error: EndInvoke can only be called once for each asynchronous operation. If I comment out the RaiseEvent, then the Callback exits with a single ca...
    Raising an Event in a Delegate causes problems
    microsoft.public.dotnet.framework.webservices
    I have an asynchronous call to a remote procedure that is invoked thru BeginInvoke. The problem is that in the Delegate if I throw an event before the CallBack function exits, the CallBack will get called multiple times and error out with the following Error: EndInvoke can only be called once for each asynchronous operation. If I comment out the RaiseEvent, then the Callback exits with a single ca...
    Raising an exception in a Sockets Async Callback Problem.
    microsoft.public.dotnet.languages.csharp
    Hi, Ive been trying to work this out for the past 2 days now and im not getting anywhere fast. The problem i have is that i am using Asynchronous sockets to create a Socket Client library. When i try to connect to a server that doesnt exist it raises a "Connection forcibly rejected by the resmote host" SocketException. Because this is thrown inside an Async Callback it is not "bubbling up" the cal...
    ReadCallback and Socket. help!
    microsoft.public.dotnet.languages.csharp
    I have a problem with ReadCallback when I'm using sockets. Here's my problem: i'm writing an internet chat program. When user sends me a messages at large time intervals, everything is OK, but if he's flooding me, ReadCallback gets lots of calls. This causes that many Readcallback is calling and this causes overlapping messages in socket. Socket treats some messages as a one big message (they were...
    Reading Secure Site XML Files
    microsoft.public.dotnet.framework.aspnet
    Hi All, I am trying to connect to a secure site in code and load an XML file. I can paste a url of the following format into a browser and I will get the file without further work but I would like to automate the process. "USERNAME:PASSWORD@https://xxxx.yyy.com/mkt/xml/private/XmlRequest?request D ATA&DAY 20020405" I have looked around but haven't found any good examples of this. If anyone can poi...
    RemoteAsyncDelegate - What Good Is It? How Do You Use It?
    microsoft.public.dotnet.framework.remoting
    I am trying to do an asynchronous remoting library (I need to be threadsafe). Unfortunately I can't use BeginInvoke that is associated with a main form. This leaves me with an example in the MSDN which discusses using RemoteAsyncDelegate. There is virtually no documentation on the API other than an example. The example is something like.... Delegate Function RemoteAsyncDelegate() As String .... ' ...
    Remoting expertise - catching exception accross threads
    microsoft.public.dotnet.framework.remoting
    Hello there, I am working on a client server app, where the servers is hosted under IIS. I am using .NET Remoting for the client server communication. My server is a Singleton, since I need to share the server state b/w multiple clients and my clients communicate with the server via async calls with callbacks and events. I have a piece of code that consistently throws System.IO.IOException with ad...
    Remoting problem with Strong Named assemblies...
    microsoft.public.dotnet.framework.remoting
    I am trying to use Server side Activation to access strong named assemblies in the Global Assembly Cache over the standard http channel. However I cannot get this to work... we get the error shown below. I am running on Windows2003 servers and have included the PublicKeyToken entry into the type attribute on both the client side and server side .Net Remoting configuration files. Any ideas. Thanks....
    RemotingConfiguration.RegisterActivatedClientType
    microsoft.public.dotnet.framework.remoting
    Client Activation Remoting Question: I am developing an App that must connect to multiple servers. I want to be able to spin over a listing of servers that much be attached to, and create a Client Activated Object as necessary. However, if I call the RemotingConfiguration.RegisterActivatedClientType routine more then once, it throws an error: "Attempt to redirect activation of type 'vFMStream.File...
    Returning a Dataset from a Client App
    microsoft.public.dotnet.framework.aspnet.webservices
    How do you return a dataset from a client app. I can program as label1.TEXT news feed to return a WebService but I can't figure out how to return a dataset. I declared the Namespace and Class but how do you return the Private Sub Page Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here Dim callback As System.AsyncCallback ...
    Returning a DataSet from an asynchronous WebService Call
    microsoft.public.dotnet.framework.webservices
    Hello everyone, I created a WebService that returns me a DataSet. Using a Win32 Client, I want to consume that DataSet, binding it to a Datagrid. Making a synchronous call and everything works fine! private void btnSynch Get Click(object sender, System.EventArgs e) { DataServices.NorthwindDB webNorthwindDB new DataServices.NorthwindDB(); System.Data.DataSet ds webNorthwindDB.GetAllProducts(); dgrD...
    Returning object from AsyncCallback called inside a threaded Infinite loop
    microsoft.public.dotnet.languages.csharp
    I'm having trouble returning an object from an AsyncCallback called inside a threaded infinite loop. I'm working on a Peer2Peer app that uses an AsyncCallback to rerieve the data from the remote peer. I have no problem connecting the peers and streaming Network Streams. When the incoming data is finished recieving, I act upon it. This works great as long as all of the code is inside my form. I wan...
    Serial.cs
    microsoft.public.dotnet.languages.csharp
    does anyone have the rest of this? using System; using System.Runtime.InteropServices; namespace JustinIO { class CommPort { public int PortNum; public int BaudRate; public byte ByteSize; public byte Parity; // 0 4 no,odd,even,mark,space public byte StopBits; // 0,1,2 1, 1.5, 2 public int ReadTimeout; //comm port win32 file handle private int hComm 1; public bool Opened false; //win32 api constant...
    Serialization over NetworkStream
    microsoft.public.dotnet.languages.csharp
    I am having problems using serialization over the NetworkStream using TcpClient. The error I am getting on my server is: An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: End of Stream encountered before parsing was completed. I get the error on the line Data myData (Data) binaryFormatter.Deserialize(networkStream)...
    Serialization over NetworkStreams
    microsoft.public.dotnet.general
    I am having problems using serialization over the NetworkStream using TcpClient. The error I am getting on my server is: An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: End of Stream encountered before parsing was completed. I get the error on the line Data myData (Data) binaryFormatter.Deserialize(networkStream)...
    Server-Side Async Web Methods call fails
    microsoft.public.dotnet.framework.aspnet.webservices
    Hi. I have WS implementing DIME 1.0. Primary client is ASP.NET Web application consuming WS through proxy. I though it might be beneficial from the performance stand point to implement some WS methods asynchronously. I've read msdn article "Server side Asynchronous Web Methods" http://msdn.microsoft.com/library/default.asp?url /library/en us/dnservice/html/service10012002.asp and basically copied ...
    Service working w/winforms not working w/webforms
    ASPFriends.com 'aspngwebservices' list
    I have a winforms application that connects up to a web service just fine. However when I try to connect to it from a web project as the consumer (on my localhost machine) I get: Server Error in '/PortalVSVB' Application. The underlying connection was closed: Unable to connect to the remote server. Description: An unhandled exception occurred during the execution of the current web request. Please...
    simple asynch web request question
    microsoft.public.dotnet.languages.csharp
    Hi everyone, I have what I think is a simple question concerning making an asynchronous web request using the BeginGetResponse / EndGetResponse methods of httpWebRequest. My app needs to fire off a bunch (possibly thousands) of http requests at once. Each request calls a java servlet which places a telephone call. I need to examine the stream returned and do a simple SQL update to log the status o...
    Soap Extensions - Trying to log the soap messages (response/request).
    microsoft.public.dotnet.framework.aspnet.webservices
    Hello all: I have been trying to use the Soap Extensions to try out a simple logging application but it looks like the Soap Extension classes do not like File IO. Here is my code in the following sequence The issue is in the part b) Not sure why the logs are not written but it looks like the SoapExtension class "narayan" containing the abc Method is not working. if I comment out the code in the me...
    SoapClient.BeginSendRequestResponse state argument
    microsoft.public.dotnet.framework.webservices.enhancements
    Hi all, When invoking a SoapService asynchronously using SoapClient.BeginSendRequestResponse, the method takes 4 arguments: method name envelope / object callback *state* How can I get access to the *state* parameter in the callback method? The on line help is empty... Thanks! Gregor ps: here is my code snippet class MySoapClient: SoapClient { .... [SoapMethod("urn:hohpe:objectService")] public vo...
    SoapUnknownHeader
    ASPFriends.com 'aspngwebservices' list
    Hi All, I was wondering if it would be a good idea to incorporate processing for the SoapUnknownHeader in all WebMethods of my WebService so that no errors occur if a client did send my webservice any headers I was not expecting. I would think this would help in making my WebService more robust ! Am I thinking in the right direction ? Are there any downsides to doing this ? TIA, Jehangir
    Socket EndReceiveFrom question
    microsoft.public.dotnet.general
    Hi According to the documentation in case of client disconnecting the EndRecieveFrom should return 0 bytes, but I get an socket exception. Is the documentation wrong or is this a bug? If this is not a bug, how should I know if an error in socket happened or the client is disconnected? Regards Eli.
    Socket EndReceiveFrom question
    microsoft.public.dotnet.languages.csharp
    Hi According to the documentation in case of client disconnecting the EndRecieveFrom should return 0 bytes, but I get an socket exception. Is the documentation wrong or is this a bug? If this is not a bug, how should I know if an error in socket happened or the client is disconnected? Regards Eli.
    Socket EndReceiveFrom question
    microsoft.public.dotnet.languages.vb
    Hi According to the documentation in case of client disconnecting the EndRecieveFrom should return 0 bytes, but I get an socket exception. Is the documentation wrong or is this a bug? If this is not a bug, how should I know if an error in socket happened or the client is disconnected? Regards Eli.
    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