HighTechTalks DotNet Forums  

WebException -The decryption operation failed, see inner exception

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss WebException -The decryption operation failed, see inner exception in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
jigs
 
Posts: n/a

Default WebException -The decryption operation failed, see inner exception - 12-17-2007 , 10:16 AM






I'm getting this exception when trying to call external WS that
requires client side certs. It fails sporadically and not always -
Please see the below exception. This is urgent and need some immediate
assistance if possible, thanks.


The underlying connection was closed: An unexpected error occurred on
a receive. ---> System.IO.IOException: The decryption operation
failed, see inner exception. --->
System.ComponentModel.Win32Exception: The certificate chain was issued
by an authority that is not trusted
--- End of inner exception stack trace ---
at
System.Net.Security._SslStream.ProcessReadErrorCod e(SecurityStatus
errorCode, Byte[] buffer, Int32 offset, Int32 count,
AsyncProtocolRequest asyncRequest, Byte[] extraBuffer)
at System.Net.Security._SslStream.ProcessFrameBody(In t32 readBytes,
Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest
asyncRequest)
at System.Net.Security._SslStream.StartFrameBody(Int3 2 readBytes,
Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest
asyncRequest)
at System.Net.Security._SslStream.StartFrameHeader(By te[] buffer,
Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32
offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32
offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32
size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32
size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean
userRetrievedStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream()

Reply With Quote
  #2  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: WebException -The decryption operation failed, see inner exception - 12-17-2007 , 01:57 PM






"jigs" <jigesh1212 (AT) gmail (DOT) com> wrote

Quote:
I'm getting this exception when trying to call external WS that
requires client side certs. It fails sporadically and not always -
Please see the below exception. This is urgent and need some immediate
assistance if possible, thanks.


The underlying connection was closed: An unexpected error occurred on
a receive. ---> System.IO.IOException: The decryption operation
failed, see inner exception. ---
System.ComponentModel.Win32Exception: The certificate chain was issued
by an authority that is not trusted
Have you considered the possibility that the exception is telling you the
truth?

Do you have more than one server hosting this web service? Is it possible
that some server involved in determining trust is not always available?
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer




Reply With Quote
  #3  
Old   
jigs
 
Posts: n/a

Default Re: WebException -The decryption operation failed, see innerexception - 12-17-2007 , 02:17 PM



On Dec 17, 1:57 pm, "John Saunders [MVP]" <john.saunders at
trizetto.com> wrote:
Quote:
"jigs" <jigesh1... (AT) gmail (DOT) com> wrote in message

news:a939008c-592e-40e5-b5f9-ce25b74e5c19 (AT) e25g2000prg (DOT) googlegroups.com...

The underlying connection was closed: An unexpected error occurred on
a receive. ---> System.IO.IOException: The decryption operation
failed, see inner exception. ---
System.ComponentModel.Win32Exception: The certificate chain was issued
by an authority that is not trusted

Have you considered the possibility that the exception is telling you the
truth?

Do you have more than one server hosting this web service? Is it possible
that some server involved in determining trust is not always available?
--
---------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Yes. I've checked on all servers hosting this WS. All servers have
accurate certs installed in appropriate stores.

FYI - My WS is a client-side WS and tries to initiate a call to
another WS on the vendor's end.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.