Re: Underlying Connection Was Closed Error
- From: "John Saunders [MVP]" <john.saunders at trizetto.com>
- Date: Thu, 30 Aug 2007 15:48:06 -0400
"WeluR" <WeluR@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:4B717DEB-6325-4734-9D88-5A2882FD624F@xxxxxxxxxxxxxxxx
I have a web client application built on .Net Frameworks 2.0 that connects to
a web service on IIS 6.0 via SSL and using X509 Client Certificates. At some
locations (it works at others), I get the following error. Below is my code.
I've also used System.Net.Tracing and have the traffic generated as a result
of the web request if anyone wants to view it.
System.Net.WebException: There was an error downloading
'https://web-site-url/web-service.asmx'. ---> System.Net.WebException: The
underlying connection was closed: An unexpected error occurred on a send.
---> System.IO.IOException: The handshake failed due to an unexpected packet
format.
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32
readBytes, AsyncProtocolRequest asyncRequest)
... remainder ommitted for brevity.
I have no idea what could be causing this, but given the "System.Net.Security.SslState.StartReadFrame" being on the stack, this would appear to have to do with the client and server SSL implementations failing to talk to each other. You'd probably get better answers in a different forum. Possibly the microsoft.public.dotnet.framework newsgroup, or the .NET Framework Networking and Communication forum at http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=40&SiteID=1.
--
John Saunders [MVP]
.
- Prev by Date: Re: Web service, generics and complex data types
- Next by Date: Re: Underlying Connection Was Closed Error
- Previous by thread: What is a Proxy Class--Newbie Question
- Next by thread: Re: Underlying Connection Was Closed Error
- Index(es):
Relevant Pages
|