IMAP client gives error

Hi Support,

While making a connection with IMAP, I am getting below error


— Aspose.Email for .NET 4.0 [22.1.0.0] IMAP Client diagnostic log

— Started: 16/05/2022 9:40:28 AM

Imap client[1|16/05/2022 9:40:30 AM]:
Imap client[1|16/05/2022 9:40:30 AM]:
16/05/2022 9:40:30 AM

Imap client[1|16/05/2022 9:40:30 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Connect to: imap.gmail.com:993 SecurityOptions.SSLExplicit <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:40:30 AM]:
16/05/2022 9:40:30 AM

Imap client[1|16/05/2022 9:40:30 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Environment version: 4.0.30319.42000 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:40:30 AM]:
16/05/2022 9:40:30 AM

Imap client[1|16/05/2022 9:40:30 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> OS version: Microsoft Windows NT 6.2.9200.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:40:30 AM]:
16/05/2022 9:40:30 AM

Imap client[1|16/05/2022 9:40:30 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Assembly title: Aspose.Email for .NET 4.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:40:30 AM]:
16/05/2022 9:40:30 AM

Imap client[1|16/05/2022 9:40:30 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Assembly version: 22.1.0.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:40:30 AM]:
16/05/2022 9:40:30 AM

Imap client[1|16/05/2022 9:40:30 AM]:
Imap client[1|16/05/2022 9:40:30 AM]:
16/05/2022 9:40:30 AM

Imap client[1|16/05/2022 9:40:40 AM]: The operation ‘ReadGreetingString’ terminated. Timeout ‘9997’ has been reached.
16/05/2022 9:40:40 AM

Imap client[1|16/05/2022 9:40:40 AM]: The operation ‘ReadGreetingString’ terminated. Timeout ‘9990’ has been reached.

==================================================================


— Aspose.Email for .NET 4.0 [22.1.0.0] IMAP Client diagnostic log

— Started: 16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]:
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Connect to: imap.gmail.com:993 SecurityOptions.SSLImplicit <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Environment version: 4.0.30319.42000 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> OS version: Microsoft Windows NT 6.2.9200.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Assembly title: Aspose.Email for .NET 4.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Assembly version: 22.1.0.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]:
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap server[1|16/05/2022 9:41:28 AM]: * OK Gimap ready for requests from 2a02:a444:8268:1:9897:6cf9:d6b2:d5a5 l16mb305024027edb
Imap server[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]: AE_1_1_0000 CAPABILITY
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap server[1|16/05/2022 9:41:28 AM]: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH=XOAUTH
Imap server[1|16/05/2022 9:41:28 AM]: AE_1_1_0000 OK Thats all she wrote! l16mb305024027edb
Imap server[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]: AE_1_1_0001 AUTHENTICATE XOAUTH2
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap server[1|16/05/2022 9:41:28 AM]: +
Imap server[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]: dXNlcj11a19jbGllbnRfcmVjZWl2YWJsZXNAcHdjLmNvbQFhdXRoPUJlYXJlciAqKioqKioqKioqKioBAQ==
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap server[1|16/05/2022 9:41:28 AM]: + eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
Imap server[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap client[1|16/05/2022 9:41:28 AM]: dXNlcj11a19jbGllbnRfcmVjZWl2YWJsZXNAcHdjLmNvbQFhdXRoPUJlYXJlciAqKioqKioqKioqKioBAQ==
Imap client[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

Imap server[1|16/05/2022 9:41:28 AM]: AE_1_1_0001 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
Imap server[1|16/05/2022 9:41:28 AM]:
16/05/2022 9:41:28 AM

@munishsdna

Could you please try the latest version of Aspose.Email for .NET 22.4 and let us know how it goes on your side? Hope this helps you.

same result, please let me know if you need anything else.

@munishsdna

Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

A post was split to a new topic: IMAP client issues