469,953 Members | 2,256 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,953 developers. It's quick & easy.

An unexpected error occurred on a send

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.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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,
Nov 23 '05 #1
6 5315
Can you look at the exception and post the error code? If there is an inner
exception, please post that as well

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Yoel" <Yo**@discussions.microsoft.com> wrote in message
news:E3**********************************@microsof t.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.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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,

Nov 23 '05 #2
Hi Jared,
The ExceptionCode is -532459699 (_COMPlusExceptionCode & _xcode)
The Inner exception is empty
"Jared Parsons [MSFT]" wrote:
Can you look at the exception and post the error code? If there is an inner
exception, please post that as well

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Yoel" <Yo**@discussions.microsoft.com> wrote in message
news:E3**********************************@microsof t.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.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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,


Nov 23 '05 #3
That error code seems to be fairly generic. What was the HRESULT?

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Yoel" <Yo**@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi Jared,
The ExceptionCode is -532459699 (_COMPlusExceptionCode & _xcode)
The Inner exception is empty
"Jared Parsons [MSFT]" wrote:
Can you look at the exception and post the error code? If there is an inner exception, please post that as well

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights" "Yoel" <Yo**@discussions.microsoft.com> wrote in message
news:E3**********************************@microsof t.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.IPo stBackEventHandler.RaisePo stBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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,


Nov 23 '05 #4
The HResult is -2146233079


"Jared Parsons [MSFT]" wrote:
That error code seems to be fairly generic. What was the HRESULT?

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Yoel" <Yo**@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi Jared,
The ExceptionCode is -532459699 (_COMPlusExceptionCode & _xcode)
The Inner exception is empty
"Jared Parsons [MSFT]" wrote:
Can you look at the exception and post the error code? If there is an inner exception, please post that as well

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights" "Yoel" <Yo**@discussions.microsoft.com> wrote in message
news:E3**********************************@microsof t.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.IPo stBackEventHandler.RaisePo stBackEvent(String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
> sourceControl, String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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,
>
>


Nov 23 '05 #5
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" <Yo**@discussions.microsoft.com> wrote in message
news:E3**********************************@microsof t.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.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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,

Nov 23 '05 #6
Check out this article

http://lab.msdn.microsoft.com/Produc...a-099cf5034974

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Yoel" <Yo**@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
The HResult is -2146233079


"Jared Parsons [MSFT]" wrote:
That error code seems to be fairly generic. What was the HRESULT?

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
"This posting is provided "AS IS" with no warranties, and confers no rights"
"Yoel" <Yo**@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi Jared,
The ExceptionCode is -532459699 (_COMPlusExceptionCode & _xcode)
The Inner exception is empty
"Jared Parsons [MSFT]" wrote:

> Can you look at the exception and post the error code? If there is an
inner
> exception, please post that as well
>
> --
> Jared Parsons [MSFT]
> ja******@online.microsoft.com
> "This posting is provided "AS IS" with no warranties, and confers no

rights"
> "Yoel" <Yo**@discussions.microsoft.com> wrote in message
> news:E3**********************************@microsof t.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.IPo stBackEventHandler.RaisePo
> stBackEvent(String eventArgument)
> > System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
> > sourceControl, String eventArgument)
> > System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection 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,
> >
> >
>
>
>


Nov 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by slylos | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.