We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TLS 1.1 and 1.2 Connection to Gmail

Attempting a connection to a gmail account via IMAP from a server where TLS 1.1 and TLS 1.2 are enabled. TLS 1.0 is specifically disabled. I’ve reviewed other posts with a similar issue. I’ve attempted to set the securityoptions to auto, server address is ‘[imap.gmail.com](http://imap.gmail.com/)’, port 993. The connection works if we re enabled TLS 1.0. Stack trace comes back with.

System.ComponentModel.Win32Exception (0x80004005): The client and server cannot communicate, because they do not possess a common algorithm
at #=qwWvLPYVwrM7kN6qcbd9jopfyxMrAteJdlN5ugt9xa$AqFawA4DbRx52$nDpqhMyv.#=qH21_m48i149xPVZg51SRFxYsdYVuEyyKJg7CxwUuI_I=(String #=q5mDnU2B7NVCxQP0hEW4DIg==, Int32 #=qwPTDkAcy2_2JkEb7FfnCsg==)
at #=q1SIYjb3KC_vNZR5KjHO0jL0o0nmczRxE9DmlEJrTN30=.#=qkC7MtDMybI6PCJuIyXWpMA==(Int32 #=qQvfvrl_VbKQRkmIpSuc3pA==)
at #=q1SIYjb3KC_vNZR5KjHO0jL0o0nmczRxE9DmlEJrTN30=.#=q8dPfvNnEs9aACws7V6xOeg==()
at Aspose.Email.Imap.ImapClient.BeginNoop(IConnection iConnection, AsyncCallback callback, Object state)
at Aspose.Email.Imap.ImapClient.BeginNoop(IConnection iConnection, AsyncCallback callback)
at Aspose.Email.Imap.ImapClient.Noop()

@SeanLeja

You may need to provide EncryptionProtocol as follows:

client.SupportedEncryption = Clients.Base.EncryptionProtocols.Tls12;