| help,help,help! |
| microsoft.public.dotnet.languages.csharp |
| i had ask this question for three weeks,somebody can help me out??please see the blue text! using System; using System.Threading; using System.Text; using System.Net; using System.Net.Sockets; public class StateObject { public int BufferSize 512; public StringBuilder sb new StringBuilder(); public Socket worksocket null; public byte[] buffer new byte[512]; } public class AsynchronousClient { publi... |
|
| How to do an Asynchronous Call |
| microsoft.public.dotnet.framework.aspnet.webservices |
| Hi Can someone direct me to examples of calling a web service method asynchronously? Thanks Matt |
|
| How to hook up a new thread to an existing exception handler? |
| microsoft.public.dotnet.framework |
| When my client application (Winforms) starts up, it adds handlers for both AppDomain.CurrentDomain.UnhandledException and Application.ThreadException. Then, when my middle tier throws exceptions, they correctly go back to the client and are logged, dealt with, etc. In the middle tier, I want to split some heavy processing off into two new threads. However, these new threads apparently don't know a... |
|
| how to make asynchronous calls to a web service |
| microsoft.public.dotnet.framework.webservices |
| help. i have this application that has two available methods of calling a middle tier web service, one sync, and one async: public System.Xml.XmlNode ExecRequest(string requestXml) { object[] results this.Invoke("ExecRequest", new object[] {requestXml}); return ((System.Xml.XmlNode)(results[0])); } public System.IAsyncResult BeginExecRequest(string requestXml, System.AsyncCallback callback, object... |
|
| How to use asynchronous mode of web service in asp.net page? |
| microsoft.public.dotnet.framework.aspnet.webservices |
| Hi, I use asynchronous mode of web service in asp.net page and specify a callback function. My question is how can I keep the returned value ? It is not use that I added the returned value to session. Thanks The following is part of my codes. Private Sub Page Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not IsPostBack Then Dim rMessage As New messagepubli... |
|
| How to use session variable and to reload page |
| microsoft.public.dotnet.framework.aspnet |
| I was trying to figure out how I can use the session variable to store the data between WEB page's reloads. I have the following code that calls a web service (it just returns "hello world") asynchronously, stores the data in the session variable, and then, during the next page refresh (reload) should print "hello world" in the label. Although the Session["Text"] exists after it is being created i... |
|
| HTTP 401 again |
| microsoft.public.dotnet.framework.aspnet.webservices |
| Hello, I saw there were already a lot of post concerning webservices and security. Specially the following error "The request failed with HTTP status 401: Access Denied". I have the same problem. The application works via the browser, but when I call it from a windows application, it does not work when I turn of "Allow anonymous" in IIS. My code is bellow. You can see that I pass the credentials..... |
|
| HTTP remoting in IIS : The underlying connection was closed |
| microsoft.public.dotnet.framework.remoting |
| Hello, I'm trying to host an HTTP .NET Remoting component under IIS on Windows2003 Enterprise Server. I implemented the same successfully on Win2K Professional. But now when I am trying to implement the same on Win2003 Enterprise Server in which I am getting the following error : "The underlying connection was closed: The request was canceled." Exception is : Server stack trace: at System.Net.Http... |
|
| HTTPWebRequest async time out |
| microsoft.public.dotnet.framework.compactframework |
| How do I make HTTPWebRequest time out after 5 seconds when it is called async? setting req.TimeOut seems to do nothing I tried to set a seperate timer but once the call to the server was made on the thread there was no way to stop it... Regards, éric |
|
| HTTPWebRequest Error (0x80090300) after a while |
| microsoft.public.dotnet.languages.vb |
| I have a vb.net service running under a Domain account. I'm trying to call a web service on our Mainframe (IBM CICS via SSL and Client Certificates) and after a while (1 or 2 days.. thousands of transactions) I'm getting the following errors: First, 2 of these: SoapDriver GotRequestStream System.Net.WebException: The underlying connection was closed: Could not establish secure channel for SSL/TLS.... |
|
| HttpWebRequest File Download |
| microsoft.public.dotnet.framework.compactframework |
| I'm trying to download a file from a webserver using the following code. I can download the file from PIE and from IE (desktop) but when I run the following code it times out. The file is 20k so I assume that 100secs should be enough. I also took a look at http://www.opennetcf.org/Forums/topic.asp?TOPIC ID 936 and I'm doing the same thing except in C#. Any ideas?! HttpWebRequest wr (HttpWebRequest... |
|
| IAsyncCallback and IAsyncResult |
| microsoft.public.dotnet.languages.csharp |
| Hi everyone. I just have a question about the ISyncCallback delegate and the related IAsyncResult object. I am making the call: IAsyncResult result receiveStream.BeginRead(buffer, 0, MAX RECEIVE STREAM LENGTH, new AsyncCallback (this.AsynchronousReadCallback), codesArray); My callback has the follwing code in it: ArrayList codesArray (ArrayList)ar.AsyncState; Which gets me the parameter 'codesArra... |
|
| IAsyncResult interface question |
| microsoft.public.dotnet.languages.csharp |
| Hi, I'm trying to follow the example in the docs under: IAsyncResult Interface. This example shows the code to call BeginInvoke and intellisense isn't showing me the BeginInvoke method. What could I be missing? using System; using System.Threading; using System.Runtime.Remoting; using System.Runtime.Remoting.Contexts; using System.Runtime.Remoting.Messaging; namespace AsyncMLQServer { [Synchroniza... |
|
| IAsyncResult timeout in .net CF |
| microsoft.public.dotnet.framework.aspnet.mobile |
| I'm having a problem timing out an asyncronous web service call in .net compact framework. A recent MSDN article by Neil Cowburn titled 'Consuming XML Web Services with the Microsoft .NET Compact Framework' suggested that you could use 'one of the WaitHandle methods of the IAsyncResult.AsyncWaitHandle object' and 'specify a timeout' parameter in the call. It appears that .NET Compact Framework onl... |
|
| IIS Server with delegate client calls |
| microsoft.public.dotnet.framework.remoting |
| Hello All, I want to setup a server under IIS and call it with delegates in my client. I've been reading from Advanced .NET Remoting and can't seem to come up with the correct combination to communicate. Mainly I want to pass datasets to the server so it can log the info. My server looks like Class Status { public void UpdateMachine(DataSet DS) { // Log it } } What would my best choice: metadata? ... |
|
| Inconsistent webservice behaviour |
| microsoft.public.dotnet.framework.aspnet.webservices |
| We have an .NET asp app which works well from various test sites accross the internet, but not for our chosen client pilot site (on more than one machine consistently)! The error message for the fat client is below and the thin client fails similarly. A login screen appears OK, authentication using uid/pw against our SQL server succeeds and the next screen appears with all the data we expect. The ... |
|
| Interoperability with Asynchronous Web Services? |
| microsoft.public.dotnet.framework.aspnet.webservices |
| I realize that ASP.NET Web Services are able to work seamlessly with non Microsoft Web Services; however, I've noticed that when building an 'asynchronous' Web Service, one has to use the 'System.Runtime.Remoting' namespace in order to invoke the IAsync object. If I'm understanding this correctly, the IAsync object is used to maintain the state of the Web Service call? If so, great ... BUT, since ... |
|
| InvalidOperationException when executing a web service |
| microsoft.public.dotnet.framework.webservices |
| I am getting a terribly vexing error from a .Net generated SOAP client. Here it is: System.InvalidOperationException: Method ServiceRequest.customService can not be reflected. System.InvalidOperationException: The XML element name 'service' references a method and a type. Change the method's message name using WebMethodAttribute or change the type's root element using the XmlRootAttribute. I've mu... |
|
| Invoke Method Returning Nothing |
| microsoft.public.dotnet.framework.webservices |
| I have had a working application using .NET 1.0 where I am calling an internet web service (Webshere hosted). The web service proxy classes were generated from a wsdl file using wsdl.exe. I have migrated my app to VS2003, and hence to .NET framework 1.1, however when I call the web service, the result (Result()) returned by the Invoke method is nothing, even though I can see the web service return... |
|
| IOException in Asynchronous Read Callback |
| microsoft.public.dotnet.framework.aspnet |
| I'm trying to use asynchronous reads of the response stream of a WebRequest so the user can abort the transfer if it takes a long time. Some sites drop the connection for various reasons and this results in an IOException. I have code that tries to catch these exceptions and deal with them. The problem is that the framework is raising the exception from: system.dll!System.Net.Connection::ReadCallb... |
|
| Iterative WebRequest/WebResponse Issue |
| microsoft.public.dotnet.framework.performance |
| Hi, I'm trying to determine performance of web requests using asynchronous webrequest/webresponse but the results are not terribly consistent. I'll post the code, which is based on MS .NET sdk examples, after this. At Main(), I create 2 AsyncRequest objects and pass in the URL and number of times I'd like to request the page. When the objects are created, I set up a thread to handle the request. T... |
|
| Iterative WebRequest/WebResponse Issue |
| microsoft.public.dotnet.framework.sdk |
| Hi, I'm trying to determine performance of web requests using asynchronous webrequest/webresponse but the results are not terribly consistent. I'll post the code, which is based on MS .NET sdk examples, after this. At Main(), I create 2 AsyncRequest objects and pass in the URL and number of times I'd like to request the page. When the objects are created, I set up a thread to handle the request. T... |
|
| Load an image asynchronously |
| microsoft.public.dotnet.languages.csharp |
| Hi, How can I load, in a PictureBox, an image from a url asynchronously? In vb6 I used the method UserControl AsyncReadComplete(AsyncProp As AsyncProperty) I try the "Making Asynchronous Requests" example but, I don't know how to apply this example to load an image. Thanks Esteban |
|
| Loop with threats in it |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, I want to perform this action in my application: I gather all File names in a directory, and than I want to do soem actiosn with these Files (reading the records and puttign them in a Sql Server). So my idea is: I perform a loop from the first until the last File. In the loop I create a new isntance of a Class (clsImport or something liek that), I gave that new isntance the name of the File, a... |
|
| Loop with threats in it |
| microsoft.public.dotnet.languages.vb |
| Hi, I want to perform this action in my application: I gather all File names in a directory, and than I want to do soem actiosn with these Files (reading the records and puttign them in a Sql Server). So my idea is: I perform a loop from the first until the last File. In the loop I create a new isntance of a Class (clsImport or something liek that), I gave that new isntance the name of the File, a... |
|