MSFT Please help to translate this error message

  • Thread starter Thread starter Frendy
  • Start date Start date
F

Frendy

I got the following error from my application that has been running
fine.
Anyone know how to translate this error "Unknown Error (0x80090300)"
into native Win32 error? Any leads will be appreciated.

....
System.Net.WebException: The underlying connection was closed: Could
not establish secure channel for SSL/TLS. --->
System.ComponentModel.Win32Exception: Unknown error (0x80090300) ---
End of inner exception stack trace --- at
.....

Thanks
 
Frendy said:
I got the following error from my application that has been running
fine.
Anyone know how to translate this error "Unknown Error (0x80090300)"
into native Win32 error? Any leads will be appreciated.
System.Net.WebException: The underlying connection was closed: Could
not establish secure channel for SSL/TLS. --->

It can be one of several problems. The server and client were not able to
agree on a cipher suite to use, or the server certificate was invalid or the
server requires mutual authentication, etc.
It's difficult to find out what exactly went wrong because the error message
doesn't really give you much to work with.

Try to connect to the server with Internet Explorer. If that connection
doesn't succeed, you know that it's not a problem related to your code.
If the connection succeeds but you get a "Security Alert" dialog that
informs you about some problems with the server certificate, it may be that
your code simply rejects the certificate and closes the connection. In that
case you'll have to implement the ICertificatePolicy interface. More
information about this can be found at
http://www.f5.com/f5products/iControl/developer/techTips/Microsoft_NetSSL.html
If the connection succeeds and you get a dialog box that asks you to select
client certificates, try setting the HttpWebRequest ClientCertificates
property to a collection of client certificates that you would normally use
when connecting to the srver using IE.

Regards,
Pieter Philippaerts
Managed SSL/TLS: http://www.mentalis.org/go.php?sl
 
Thanks for your reply. I'm sorry I didn't give much information about
the application. We have a C# Service that keep posting to a website
that uses a client certificate. The application has been running fine
and I'm also implement the ICertificatePolicy in the code already.
This is the first time we've ever seen this error message since the
app has been running for months. By restarting the service it fix the
issue but I'm just wondering if you know or is there anyway I can do a
lookup to the Win32 error so that I can troubleshoot it.

Thanks
 
Back
Top