Re: An unexpected error occurred on a send

From: Chris Botha (chris_s_botha_at_AT.hotmail.com)
Date: 02/09/05


Date: Wed, 9 Feb 2005 11:42:19 -0500

There are two issues calling COM components from Web Services.
You say that the Web Service can be called from a Java Client (is this a
Windows Client?), so the first issue may not be the problem, but firstly,
the COM component must be called from a STA thread, while your Web Service
runs in a MTA thread. It may seem to work, but at least does not release the
COM component properly. You will see that if you call an ActiveX exe, it
will hang around (check in Task Manager) after the call completed.
The second issue is security. You may want to use impersonation on the Web
App you are calling the Web Service from, to see if it cures the problem.

"Yoel" <Yoel@discussions.microsoft.com> wrote in message
news:E39F4741-947E-4CFC-9FB7-83A1A7752481@microsoft.com...
> Hi,
> I'm trying consuming web services over SSL by an ASP .Net client without
> success.
>
> System Architecture:
> My Server side contains the following layers, starting from the client
side:
>
> (Client side)
> WSD
> firewall
> Weblogic server.
>
> The webservices deployed On the weblogic
> Protocol: SSL.
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET
> Version:1.1.4322.573
>
>
> Symptoms
> 1. The handshake completed successfully, (taken from the MMC):
> "An SSL client handshake completed successfully. The negotiated
> cryptographic parameters are as follows.
>
> Protocol: SSL 3.0
> Cipher: RC4
> Cipher strength: 128
> MAC: MD5
> Exchange: RSA
> Exchange strength: 1024"
>
> 2. I'm getting the error message:
>
> WebException: The underlying connection was closed: An unexpected error
> occurred on a send.]
> emtv1.WebForm1.Button1_Click(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\emtv1\webform1.aspx.cs:69
> System.Web.UI.WebControls.Button.OnClick(EventArgs e)
>
>
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> sourceControl, String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
> System.Web.UI.Page.ProcessRequestMain()
>
> Facts:
> 1. Other client (java client) consumes the same services successfully.
> 2. Overriding the GetWebRequest method not solved the problem.
>
> What am I missing?
>
> Thanks in advanced,
>
>