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.RaisePostBackEvent(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,
Jared Parsons [MSFT] - 07 Feb 2005 17:44 GMT
Can you look at the exception and post the error code? If there is an inner
exception, please post that as well

Signature
Jared Parsons [MSFT]
jaredpar@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"
> Hi,
> I'm trying consuming web services over SSL by an ASP .Net client without
[quoted text clipped - 32 lines]
> 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)
[quoted text clipped - 8 lines]
>
> Thanks in advanced,
Yoel - 08 Feb 2005 09:37 GMT
Hi Jared,
The ExceptionCode is -532459699 (_COMPlusExceptionCode & _xcode)
The Inner exception is empty
> Can you look at the exception and post the error code? If there is an inner
> exception, please post that as well
[quoted text clipped - 52 lines]
> >
> > Thanks in advanced,
Jared Parsons [MSFT] - 08 Feb 2005 16:56 GMT
That error code seems to be fairly generic. What was the HRESULT?

Signature
Jared Parsons [MSFT]
jaredpar@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"
> Hi Jared,
> The ExceptionCode is -532459699 (_COMPlusExceptionCode & _xcode)
[quoted text clipped - 41 lines]
> > > 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
[quoted text clipped - 9 lines]
> > >
> > > Thanks in advanced,
Yoel - 09 Feb 2005 07:27 GMT
The HResult is -2146233079
> That error code seems to be fairly generic. What was the HRESULT?
>
[quoted text clipped - 62 lines]
> > > >
> > > > Thanks in advanced,
Jared Parsons [MSFT] - 09 Feb 2005 19:20 GMT
Check out this article
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=4178c
7c2-d445-4921-a94a-099cf5034974

Signature
Jared Parsons [MSFT]
jaredpar@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"
> The HResult is -2146233079
>
[quoted text clipped - 49 lines]
> > > > > 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
[quoted text clipped - 9 lines]
> > > > >
> > > > > Thanks in advanced,
Chris Botha - 09 Feb 2005 16:42 GMT
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.
> Hi,
> I'm trying consuming web services over SSL by an ASP .Net client without
[quoted text clipped - 32 lines]
> 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)
[quoted text clipped - 8 lines]
>
> Thanks in advanced,