WebException -The decryption operation failed, see inner exception

J

jigs

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.ProcessReadErrorCode(SecurityStatus
errorCode, Byte[] buffer, Int32 offset, Int32 count,
AsyncProtocolRequest asyncRequest, Byte[] extraBuffer)
at System.Net.Security._SslStream.ProcessFrameBody(Int32 readBytes,
Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest
asyncRequest)
at System.Net.Security._SslStream.StartFrameBody(Int32 readBytes,
Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest
asyncRequest)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] 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()
 
J

John Saunders [MVP]

jigs said:
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?
 
J

jigs

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?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top