| System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive (VIP replies) |
| microsoft.public.dotnet.framework |
| I am intermittently getting the following exception when calling a webservice. Both the webservice and the client accessing it were written in C#.net2003 The call to the Web service is performed asynchrously using BeginMethodName()/EndMethodName() scheme. Event Type: Error Event Source: MySource Event Category: None Event ID: 0 Date: 1/21/2004 Time: 4:34:34 PM User: N/A Computer: TESTPC Descriptio... |
|
| TCP Socket doesn't recognize line interruption (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Hi! I have a nasty problem concerning a TCP/IP connection: I use a System.Net.Sockets.Socket and BeginSend/EndSend in my program. When WLAN still works fine but the connection to the server is broken anyway (LAN cable plugged out, switch failure or a firewall killed the connection because of a time out while the PPC2003 was in suspend mode), the program doesn't recognize it. For a test I use a tim... |
|
| The remote server returned an error: 403 Forbidden (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.security |
| Hi Joe, Can you tell me how to setup the private key that you were talking about? I having the same error as Arun. Any direction will be appreciated. Chun Does the certificate in the store say it has a private key associated with it? CAPI needs to have the private key available for SSL client authentication, so you need to make sure the private key is imported into the store when you import the ce... |
|
| The underlying connection was closed: An unexpected error occurred on a send (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.security |
| Dear all, when I ran the following code, I always got "The underlying connection was closed: An unexpected error occurred on a send" error, it happend at "httpReq.GetResponse();" and the stack trace is ************start of stack trace*************************** The underlying connection was closed: An unexpected error occurred on a send. at System.Net.HttpWebRequest.CheckFinalS tatus() at System.N... |
|
| The underlying connection was closed: Unable to connect to the remote server. (VIP replies) |
| microsoft.public.dotnet.framework.webservices |
| Trying to conect to a rss news feed. The application is fine if I do it as a windows form. When I try and do the following in asp.net i get the The underlying connection was closed: Unable to connect to the remote server. Can any one help.... 'Get the XML data Dim reader As XmlTextReader New XmlTextReader("http://www.aspmessageboard.com/scripts/rss.xml") 'return a new DataSet Dim ds As DataSet New... |
|
| thread error (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| When I add a control to a panel, I get this error : "Controls created on one thread cannot be parented to a control on a different thread." Does anyone knows what I'm doing wrong ? Dim p As New PictureBox() p.Image New Bitmap("pics/" k.getUniCode.ToString ".bmp") p.SetBounds(1, 2, 72, 96) Panel.Controls.Add(p) here comes the error thx Snuyt |
|
| Thread marshalling (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I apologize in advance for the foolishness of this question, but I have not been able to find an answer anywhere. Iâ m just starting out with threading in .NET and have come across the terms, â œthread marshallingâ on a few occasions. What exactly is thread marshalling? Is it the process of packaging and sending method parameters across thread boundaries? How is marshalling used in a threading con... |
|
| thread parameters (VIP replies) |
| microsoft.public.dotnet.languages.vc |
| I would like to pass an Object* to a delegated thread function. However, the framework does not accommodate this. I have seen examples using VB and even C#. In fact, C# appears to have language facilities that make accomplishing this very easy. However, I only have the luxury of coding this up in C . So far the closest I've been able to come to facilitating this is something like the following. ty... |
|
| threading - suspend, resume, abort (VIP replies) |
| microsoft.public.dotnet.general |
| I have an application which consists of a main work thread and multiple threads which each maintain a TCP socket. When a configuration change occurs, all activity on the socket threads must be halted. If a socket is no longer in the configuration, that thread must be aborted and the socket must be closed. After the configuration is complete, the remaining threads must be resumed. I currently have ... |
|
| threading with .net?! (VIP replies) |
| ASPFriends.com 'ngfx-threading' list |
| hi all :) im workin on this project where a windows form will call googl's web service but then accessing the web makes the program halt for a few seconds which is so unpleasant!!! i figured if i use threading to call the web service and not make the whole program wait for it, then it would be fine! anyone can tell me how to do simple threading in .net or any useful links or articles.. stay cool :... |
|
| Threads (VIP replies) |
| microsoft.public.dotnet.framework |
| Hi I write an apllication that use two thread. The first is UI Thread and the second is worker thread. The UI thread must wait for completing job of Worker thread. Could you tell me how to remove while loop that the UI thread still wait for completed job. For example .... public delegate void DoSomething(.....); .... public void ExecuteJob(...) { DoSomething d new DoSomething(...); IAsyncResult jo... |
|
| Threads and garbage collection (VIP replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I have an application that uses an api to receive call backs on the main UI thread. The application also has a system timer that will at a given time interval ascyncronously call a calculate method and then update the display of the form. However each time the garbage collection occours I stop receiving the api callbacks? I read that (http://www.dotnet247.com/247reference/msgs/47/236133.aspx) ... |
|
| Time-Out Usage (VIP replies) |
| microsoft.public.dotnet.framework |
| There is an article on in the .Net Framework Reference under the Design Guidelines for Class LIbrary Developers with a title of Time Out Usage. Can someone please elaborate more on what this article is suggesting? How is the method supposed to know that the operation has not completed in time? Thanks Roy Chastain KMSystems, Inc. |
|
| unmanaged WinSock V.S. System.Net.Sockets (VIP replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, I am about to write a performance critical application and I wonder what is the best way to implement it... Should I use the standart Win32 winsock DLL or should I rather use the new managed System.Net.Sockets library... from bench marking tests I have done I have reached to the following conclusion: Test description: Bougth of the projects used a single IO Completion port for communication ( ... |
|
| using delegates for multithreading (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, In my Win app, I'm using delegates because the process that'll be running is time consuming and it requires parameters. The only problem I'm having is that the lines following the BeginInvoke (lines that depend on the outcome of the method) are being executed while the lengthy process is being executed. Would it be possible to "tell" those following lines of code not to execute while the Begin... |
|
| Using stream HttpRequestClass (VIP replies) |
| microsoft.public.dotnet.framework |
| Hi! I'm using HttpRequestClass on .NET and .NET Compact. I made request and get incomming data. But data feed is very slow. But I need to get data as early as possible. But behavior the code under this two platform is different... On .NET I read all available bytes, less then BUFFER SIZE, as they come. On .NET Compact (emulator and real device) I get BUFFER SIZE bytes as first result. I wait until... |
|
| VB.Net to C# Conversion Help (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I am trying to convert the following VB.Net code to C# and I am getting the compiler error: VB.NET code: '' Create a delegate that will be called asynchronously Private Delegate Function GetTextData(ByVal DatabaseName As String, ByVal ProcName As String) Dim async As New GetTextData(AddressOf TextProxy) Dim asyncResult As IAsyncResult My C# Conversion Code: // Create a delegate that will be called... |
|
| WebClient and windows authentication (VIP replies) |
| microsoft.public.dotnet.framework |
| Hi im trying to download some images using WebClient.DownloadData System.Net.WebClient wc new System.Net.WebClient(); wc.Credentials new System.Net.NetworkCredentia(sNme,sPwd,sDom); byte [] bytes wc.DownloadData(txtURL.Text); this raises an exception: Request for the permission of type System.Net.WebPermission, System, Version 1.0.5000.0, Culture neutral, PublicKeyToken b77a5c561934e089 failed. an... |
|
| WebException while calling Web Service over HTTPS... (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webservices |
| I'm having an issue calling a Web Service (This is an 3rd party Web Service and I have no control/access to it) via HTTPS. We have talked to the developers and they said their Web Services are working from their end. When I call their Web Service, though, I keep getting this error: Web Exception occurred! Status:SecureChannelFailure Entire Error Information:System.Net.WebException: The underlying ... |
|
| Webservice and datagrid (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Hi, I am using a webservice to return a dataset holding three tables to a client app running on Pocket PC2003. I'm using an asynchronous webservice so that I can do other things while waiting for the data. When the call completes, I try to bind the datset to the datagrid, however this locks the app no error messages it just locks up. The code is as below: private void frmMain Load(object sender, S... |
|
| Weird behaviour... with Delegates and Begin/EndInvoke (VIP replies) |
| microsoft.public.dotnet.languages.vc |
| Hello All, I got two questions that essentially relate to eache other. 1) Observation: While playing with the asynchronous method calls I realised that while declaring a delegate as: delegate String * AsyncDelegate(int callDuration, Int32 *threadId, Int32 *threadHash); or delegate String * AsyncDelegate(int callDuration, Int32 *threadId, Int32 threadHash); I get the following compilation error: \t... |
|
| where to thread.. (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I have written a class that has a public method which could take some time to complete (20 secs). The idea is for it to raise an event on completion. Should I create a separate thread for this lengthy operation inside the class itself OR as I suspected let any calling code of the class's method worry about threading? Br, Mark Broadbent mcdba , mcse i |
|
| Will Async Callback hander code ever be called if server offline? (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| In the sample code that follows, "LongProcessCallbackHandler" is the name of the Async Callback hander code. Will it ever be called, if the server is offline? Sample Client Code calling a Remote with callback: ....class async call method: public void CallRemoteAsyncly(){ remoteDelegate del new remoteDelegate(remote.LongProcess); AsyncCallback delCB new AsyncCallback(LongProcessCallbackHandler); de... |
|
| Will Socket.BeginRead IAsyncResult.CompletedSynchronously always b (VIP replies) |
| microsoft.public.dotnet.framework |
| Will the IAsyncResult.CompletedSynchronously for Socket.BeginRead always be false? I need to know if this is true so I can limit the amount of time that I use the callback thread for processing. I have multiple threads that need to read from the same socket asynchronously, when one thread has completed a read operation from the socket it will initiate the next read operation for another caller. If... |
|
| Will Socket.BeginRead IAsyncResult.CompletedSynchronously always b (VIP replies) |
| microsoft.public.dotnet.framework |
| Will Socket.BeginRead's IAsyncResult CompleteSychronously property always return false? I need to know this so I will not tie up the calling thread with processing performed in the AsycCallback function. Thanks, Chris Tanger |
|