| ASP.NET localhost quickstart XML sample webexeption error using webrequest.create(URL) samples? |
| microsoft.public.dotnet.xml |
| I am trying out the quickstart asp.net samples and I get an webexception error saying underlying connection is closed when using Webrequest.create(URL) example: Quickstart from loacalhost: section webservices created with ASP.net XML Web service Type marshalling the asmx samples like VB datatypes.asmx work fine but the but the VB datatypesclient.aspx gives following webexeception: Any Ideas how to... |
|
| Async and Delegate |
| microsoft.public.dotnet.languages.csharp |
| Here is what I've been wondering how to do. Let's say client application invoke an asyncronous call. Client can do anything it wants while the process is going on. Now I want the remote object to call delegate function when the process is done to notify the process is finished. Is there any good sample to show how to do this? Any help appreciated! |
|
| Async Callbacks, WebMethods and Winforms |
| microsoft.public.dotnet.framework.windowsforms |
| I am attempting to call a webmethod with an async callback... the web method should return a dataset, and in the callback function, I want to set the dataset to a datagrid. All this happens in a winform. the webmethod is calling the callback function just fine... and returning the proper dataset.. the problem occurs when I attempt to set the returned dataset to the grid in the windows form... here... |
|
| Async calls -> StackOverflowException |
| Develop.com's DOTNET List |
| Figured it out. Anytime a Stack overflows, some recursive function is at work. The async calls are fine. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at a href "http://discuss.develop.com" http://discuss.develop.com /a . |
|
| async delegate problem |
| microsoft.public.dotnet.framework.remoting |
| A little background.... I am using a unit testing framework called VAUnit which is designed to unit test a specific assembly. This framework is similar to the NUnit framework (http://sourceforge.net/projects/nunit) with one major difference. A new AppDomain is created for the test assembly each test run so that the test tool doesn't have to be restarted each time test assembly is recompiled and lo... |
|
| Async Delegates, CallBack and UI Thread |
| microsoft.public.dotnet.framework.windowsforms |
| Gentlemen, My question is simple. When my WindowsForm calls an Async Delegate which has a registered CallBack, is the CallBack always executed on the UI Thread? Or, do I need to test to see if it is? In my application (MDI), I have a main form that launches another form. When that child form loads it executes an Async Delegate who's target is a method on a static class (Controller). The CallBack i... |
|
| Async GetHostByName calls |
| microsoft.public.dotnet.framework |
| Can someone give me a simple example on how to use aResult Dns.BeginGetHostByName Dns.EndGetHostByName(aResult) aResult.IsCompleted Do I call EndGetHostByName only after aResult.IsCompleted true? How can I abort a BeginGetHostByName when network is not available? (aResult.IsCompleted will be false in this case) I noticed if I call EndGetHostByName, my application will wait for a long time (may be ... |
|
| Async methods without a callback? |
| microsoft.public.dotnet.framework |
| Is there a way to use asynchronous methods without using callbacks? I have a method that I want to process but I don't care if it returns or what happened while it was doing whatever it was doing. |
|
| Async Operation through delegates |
| microsoft.public.dotnet.languages.csharp |
| Hi everyBody; class Worker { private int ident; public Worker(int i) { ident i; } public a foo(int x) { //do some lenghty ops return this; } } public delegate Worker del(int x) class Test { static void Main() { IAsyncResult ar Waithandle[] handles new WaitHandle[5] for(int i 0;i 5;i ) { Worker inst1 new Worker(i); del mydel new del(Worker.foo); ar d.BeginInvoke(i,null,null); handles[i] ar.AsyncWai... |
|
| Async service calls. |
| microsoft.public.dotnet.framework.windowsforms |
| I have a problem I need some help with. I am writing a Windows Forms distributed app. I want my UI to be responsive so all calls to the business objects which live in IIS I am calling asynchronously via a worker thread. I have this all working but there are a couple of design / architecture questions still hanging about. They are: When making the async call I can keep the UI responsive but it leav... |
|
| Async Web Service callback never invoked |
| microsoft.public.dotnet.framework.aspnet.webservices |
| Hi, I've been searching through samples for simple web services and I'm at the point of tearing my hair out. I have a basic Hello World web method which takes no parameters and outputs the string "Hello World". I created a windows client with a button on a form and I included the web reference. In the click method I do this AsyncCallback cb new AsyncCallback(Form1.MyCallback); Service1 cService ne... |
|
| Async web service issue (not threading for once...) |
| microsoft.public.dotnet.framework.compactframework |
| I am trying to create an Asynchronous web service client. My code is as follows: protected void SynchronizeTerminal() { SecureMobileDelivery s new SecureMobileDelivery(Username, Password); progressControl.InvokeHandler(new EventHandler(progressControl.SyncingTerminal)); IAsyncResult r s.BegingetTerminal( new AsyncCallback(SynchronizeTerminalEnd), s ); } protected void SynchronizeTerminalEnd(IAsync... |
|
| Async Webservice |
| microsoft.public.dotnet.framework.aspnet.webservices |
| Trying to call i webmethod asyncronizly and set the result to a datagrid. It's not working any ideas thanks Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ws As New ReportingWS.APQReportingServices() Dim cb As AsyncCallback New AsyncCallback(AddressOf webcall) Dim ar As IAsyncResult ws.BeginGetAPQReports(cb, ws) Dim intI As Integer F... |
|
| AsyncCallback |
| microsoft.public.dotnet.languages.csharp |
| [C#] public delegate void AsyncCallback( IAsyncResult ar ); Do I have to name the delegate "AsyncCallback" or can I name it anything I want? Or does having a delegate that only accepts an "IAsyncResult" parameter distinguish it as an AsyncCallback delegate? |
|
| AsyncCallback and caller ID |
| microsoft.public.dotnet.languages.csharp |
| Check this out: ...... int callerID 7; gd new GoDelegate(clock.Go); cb new AsyncCallback(GoDone); gd.BeginInvoke(5, cb, callerID); ...... private void GoDone(IAsyncResult result) { DateTime endTime; endTime gd.EndInvoke(result); MessageBox.Show("Done!\n\nendTime " endTime.ToString("hh:mm:ss:ff")); } How do I extract the last parameter (callerID) passed in by BeginInvoke in my method GoDone? Thanks... |
|
| AsyncCallback and exceptions? |
| microsoft.public.dotnet.framework.clr |
| How are you supposed to trap exceptions thrown in an asynchronous delegate? This is a local worker callback I'm talking about no remoting is involved. I, apparently naively, assumed any exceptions thrown within the delegate would automatically be re thrown in the client thread when EndInvoke was called. Failing that, at least I assumed the exception data would somehow be available on the AsyncResu... |
|
| AsyncCallback to Webservice and binding to dataGrid |
| microsoft.public.dotnet.framework.aspnet.webservices |
| Hi, I have a webservice that returns a DataSet. Now i'm trying to make a asynchronous call to this webservice and bind the result to a datagrid but I can't get it to work. (in windows forms) When I make a synchronous call everything works fine and the grid displays the results. however when a make a asycnchronous call the grid stays empty (even after refresh) when I write an XML file instead of bi... |
|
| AsyncDelegate |
| microsoft.public.dotnet.languages.csharp |
| My code is something like: TestCallBack iC new TestCallBack(iL.TestData); AsyncCallback cb new AsyncCallback(TestResults); Object state new object(); IAsyncResult ar iC.BeginInvoke (parameter1,parameter2,cb,state); public void TestResults(IAsyncResult ar) { TestCallBack id (TestCallBack )((AsyncResult)ar) .AsyncDelegate; id.EndInvoke(ar); Label1.Text "Finito"; } The problem is: the method TestResu... |
|
| asynchonous callbacks |
| microsoft.public.dotnet.languages.csharp |
| What is the best way to return to the calling code when calling a asynchronous i/o call in C#. I have in other situations written systems that were totally event driven so the callback fires an event. My initial C# attempt has involved the callback re calling the origination function with a parameter object representing the modified state i.e. call success and the next operation to perform. Howeve... |
|
| asynchronous asp.net |
| microsoft.public.dotnet.framework.aspnet |
| could somebody show me how to asynchronously call some methods from a web service? I'm kind of fuzzy on delegates, IAsyncResult, etc... 1. web service is being called by outside source 2. web service calls method "startProcessing" in business layer a. fires off asynchronous method querying database and generating reports 3. method "startProcessing" returns a string indicating that report generatio... |
|
| Asynchronous Call ... |
| ASPFriends.com 'aspngwebservices' list |
| Hi, have been trying to make asynchronous call to webservices from an asp.net page and display different messages between the BeginMethod() and EndMethod(). For example: Begin Call to asynchronous webservice Display message in Label1 "Please wait..." Get Call Back from webservice Get the return value from End Method Update Label1 with returned value.(or display return value on another label); On m... |
|
| asynchronous call back and session variables..... |
| microsoft.public.dotnet.framework.aspnet.webservices |
| I have an asp.net webservice that is called from an asp.net website, the processes on the web service may take sometime so I call the webservice using the asynchronous method calls, i.e. BeginXXXX(), EndXXXX() etc... I pass a call back into the BeginXXX method so that when the operation has completed the call back method is called..... So in the web page it looks something like this: private void ... |
|
| asynchronous call back and session variables..... |
| microsoft.public.dotnet.framework.aspnet.caching |
| I have an asp.net webservice that is called from an asp.net website, the processes on the web service may take sometime so I call the webservice using the asynchronous method calls, i.e. BeginXXXX(), EndXXXX() etc... I pass a call back into the BeginXXX method so that when the operation has completed the call back method is called..... So in the web page it looks something like this: private void ... |
|
| asynchronous calls |
| microsoft.public.dotnet.languages.csharp |
| i'm using a delegate to call a remote object. this is done from a windows application. it retrieves a dataset and it works. the problem arrises when i try to bind the datagrid to the returned dataset in the asynch callback method. if i try to bind it there it seems to call the callback method again and i lose my dataset.However if i don't rebind it there and have a button that i can click and bind... |
|
| asynchronous calls |
| microsoft.public.dotnet.languages.csharp |
| Do you know a tutorial about asynchronous calls in .net? I just looked at the framework sample, but I think I need to fully understand the concept first, because the sample is not so easy. Thanks for replies! |
|