473,573 Members | 3,311 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unexpected Socket error when using WebServices and WSE 2.0

Hello,

I have a client that consumes a WebService using a WSE 2.0 sp3 interface. I
use a WebProxy as generated by VS.Net, based on a webService URL.

Occasionaly when debugging I get an unhandled expection in disassembly code:

"Connection was forcidbly closed by remote host"

stack trace:
system.dll!Syst em.Net.Sockets. Socket.EndRecei ve(System.IAsyn cResult asyncResult = {System.Net.Soc kets.Overlapped AsyncResult}) + 0x204 bytes

system.dll!Syst em.Net.Sockets. NetworkStream.E ndRead(System.I AsyncResult
asyncResult = {System.Net.Soc kets.Overlapped AsyncResult}) + 0xf4 bytes
system.dll!Syst em.Net.Connecti on.ReadCallback (System.IAsyncR esult
asyncResult = {System.Net.Soc kets.Overlapped AsyncResult}) + 0xbf bytes
system.dll!Syst em.Net.LazyAsyn cResult.InvokeC allback() + 0x27 bytes
system.dll!Syst em.Net.LazyAsyn cResult.InvokeC allback(bool
completedSynchr onously = false, System.Object result = {0}) + 0x23 bytes

system.dll!Syst em.Net.Sockets. OverlappedAsync Result.Completi onPortCallback( uint
errorCode = 10054, uint numBytes = 0, System.Threadin g.NativeOverlap ped*
nativeOverlappe d = 2063624) + 0xf2 bytes

Most of the time this exception is handled by the .Net Runtime but sometimes
it results in a time-out on the WebService SOAP-call I posted to the
WebService.

How can I prevent this from happening?

Thanks,

--
rvangeldrop
Jun 9 '06 #1
2 1807
Hello Rvangeldrop,

Welcome to the WebService newsgroup.

From your description, you have a .net webservice running which use WSE
2.0, however, the client application will sometimes encounter some
exception indicate that the server connection has been closed ,correct?

Based on my experience, such problem is likely caused by the server-side
processing encounter some sudden error that cause the connection been
closed forcedly. However, it's hard to locate the root cause from the
general symptom and callstack. How often will this occur (or after how much
time will it occur once), is it following a regular constant?

Anyway, since you mentioned WSE 2.0,l would suggest that we first isolate
the issue to see whether it is specific to WSE. Is it possible that you
perform some test on the webservice without using WSE?

In addition, you can check the server's eventlog to see whether there is
any useful information(suc h as ASP.NET worker process get recycled...).

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 9 '06 #2
Hello Rvangeldrop,

How are you doing on this issue, have you got any further progress or does
my last reply helps you a little? If there is still anything we can help,
please feel free to post here.

Regards,

Steven Cheng
Microsoft MSDN Online Support Lead
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Jun 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2311
by: CK | last post by:
I am a "newbie" to python and today I had the need to write a program which generated a lot of tcp connections to a range of addresses (10.34.32.0/22) in order to troubleshoot a problem with a switch. I also wanted to get familiar with threads under python and so I thought I could do both at the same time. I wrote two programs - one using...
5
24738
by: Vijayakrishna Pondala | last post by:
Hi, We are using the following error randomly, when accessing a webservice method/servlet hosted on JBoss application server: The underlying connection was closed: An unexpected error occurred on a receive. We are using .NET v1.1.
1
6677
by: matt | last post by:
hello, i am using a .NET 1.1 winform to perform webrequests via the System.Net.WebClient class (not a webservice, actually). It uploads values via a POST command & a URL, then receives the html back. nothing too complicated there. except, i am frequently getting the dreaded error: The underlying connection was closed: an unexpected...
0
2932
by: Anbu | last post by:
Hello All, I have developed an Win 32 application using .NET 2.0 Framework. This application uses the cassini dll provided by one of the Microsoft groups. While using this component, I'm getting an error (occationally) and the application terminates with unexpected exception prompt. There were two messages logged during this error:...
2
4027
by: John Nagle | last post by:
Here's a strange little bug. "socket.getaddrinfo" blows up if given a bad domain name containing ".." in Unicode. The same string in ASCII produces the correct "gaierror" exception. Actually, this deserves a documentation mention. The "socket" module, given a Unicode string, calls the International Domain Name parser, "idna.py", which...
0
4238
by: =?Utf-8?B?UGF2aQ==?= | last post by:
Hi, I am getting the following error when I try to add web reference from Visual Studio 2005 for a third party web service There was an error downloading 'https://CompanyName/WebServices?WSDL'. The underlying connection was closed: An unexpected error occurred on a send. Received an unexpected EOF or 0 bytes from the transport stream. ...
3
5112
by: nvr | last post by:
Hi all I am doing the socket programming for the client side. but the code is not compiling and i am getting the below error ./Clientsend.c: line 11: syntax error near unexpected token `(' ./Clientsend.c: line 11: `int main()' Code: #include <stdio.h> #include <stdlib.h>
6
1809
by: Peter Pippinger | last post by:
Hello NG, i have 2 functions to read and write strings on a TCP-socket. The strange thing is, that sometimes there are unexpected characters in the string. First of all, have i understood it right, - that i say in the first byte of the string - i want to send - the number of chars, that i will send? - that the fist byte of a string - i...
0
1629
by: =?Utf-8?B?T2xpdmllciBHSUw=?= | last post by:
Hello, I try to post an HTTP message containing an XML document, and I get the following exception : System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---System.IO.IOException: Unable to write data to the transport connection: Uma solicitação de envio ou recepção de dados não foi...
0
7741
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7660
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7977
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7729
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6346
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5252
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3692
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1254
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.