Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > The underlying connection was closed: An unexpected error occurred on a send

Reply
Thread Tools

The underlying connection was closed: An unexpected error occurred on a send

 
 
Robert Walter
Guest
Posts: n/a
 
      08-14-2003
I know this has been done many times before but I think I have a more
unique case.

I am using an XML-RPC wrapper (http://www.xml-rpc.net/) to call a
webservice which I connect to using SSL and client certificates. I
have a library containing the calling code that is referenced in a
Windows Service and this service should wakeup when required and call
the XML-RPC service.

I get the 'The underlying connection was closed: An unexpected error
occurred on a send' when calling it from the service. But when I call
it from a windows application it works fine.

Now I have looked round to see why this could be happening and people
have suggested changing the KeepAlive property of the Web Request to
false. I have done this but no change in what happens.

Does anyone have any idea why this could be happening and how I could
go about fixing it?

Thanks in advance,



Rob.
 
Reply With Quote
 
 
 
 
Robert Walter
Guest
Posts: n/a
 
      08-19-2003
> I know this has been done many times before but I think I have a more
> unique case.
>
> I am using an XML-RPC wrapper (http://www.xml-rpc.net/) to call a
> webservice which I connect to using SSL and client certificates. I
> have a library containing the calling code that is referenced in a
> Windows Service and this service should wakeup when required and call
> the XML-RPC service.
>
> I get the 'The underlying connection was closed: An unexpected error
> occurred on a send' when calling it from the service. But when I call
> it from a windows application it works fine.
>
> Now I have looked round to see why this could be happening and people
> have suggested changing the KeepAlive property of the Web Request to
> false. I have done this but no change in what happens.
>
> Does anyone have any idea why this could be happening and how I could
> go about fixing it?
>
> Thanks in advance,
>
>
>
> Rob.


I find that if I make a local request without SSL and Client
Certificates it works fine.

I have set the proxy value of the web request object to
GlobalProxySelection.GetEmptyWebProxy() so it shouldn't be using a
proxy server.

I get the error on every request I make, not randomly like some people
appear to get.

Thankfully I have worked out a way round it if required involving
wrapping the request in a webservice and calling that webservice from
my Windows Service but that way isn't nice so if anyone has any ideas
they'd be greatly appreciated.

Thanks,



Rob.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
system.net.webexception The underlying connection was closed: An unexpected error occurred on a send. Rob Snell ASP .Net Web Services 5 09-28-2004 01:16 PM
The underlying connection was closed: An unexpected error occurred on a send Tom ASP .Net Security 2 05-13-2004 11:36 AM
Error when calling a web service (The underlying connection was closed: An unexpected error occurred on a receive.) Franck ASP .Net Web Services 0 11-12-2003 03:43 PM
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. Steven Harris ASP .Net Web Services 0 08-14-2003 10:23 AM
The underlying connection was closed: An unexpected error occurred on a send. Emre Aydinceren ASP .Net Web Services 4 08-07-2003 02:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57