MailBee.NET Objects 4.0

MailBeeSslWin32Exception Class

The exception that is thrown when underlying Win32 Schannel implementation of TLS/SSL functions returns an error.

For a list of all members of this type, see MailBeeSslWin32Exception Members.

System.Object
   System.Exception
      System.ApplicationException
         MailBee.MailBeeException
            MailBee.Security.MailBeeSslException
               MailBee.Security.MailBeeSslWin32Exception

public class MailBeeSslWin32Exception : MailBeeSslException, IMailBeeWin32Exception, IMailBeeSocketMustCloseException

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This exception is usually thrown on attempt to connect to a wrong port (for instance, if the client attempts to initiate TLS/SSL secure POP3 connection on port 110 instead of dedicated TLS/SSL port 995).

If the dedicated TLS/SSL port is closed on the mail server, the client should attempt to connect using regular port (such as 110 for POP3) and then switch into TLS/SSL mode via STARTTLS (either using StartTls method of the mail component or specifying UseStartTls as SslMode property value).

Another reason of having this exception thrown is an attempt to establish SSL connection using a client certificate when wrong password for this certificate was specified.

The developer can obtain Win32 code of the occurred error from NativeErrorCode property.

Requirements

Namespace: MailBee.Security

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBeeSslWin32Exception Members | MailBee.Security Namespace