Free Support Forum - aspose.com

It seem SocksProxy can not work?

   在 #=zRk4QIdEMAtKzqp3Z0agSobkMkb30.#=zsJNbsFY=(IAsyncResult #=zZdm7cXs=)
   在 #=zRk4QIdEMAtKzqp3Z0agSobkMkb30.#=zsFvFw3A=()
   在 #=z$h5AuA0EccqeXd47c6QRn1viN16ZbI8u6dRXyUU=.#=z2smzR0E=(#=zHy_Fh23UJG67wLkRPwRgvNKLM7YmZp7wWA== #=zCSooSAM=)
   在 #=zOf8ML2_U$sXW4utlLpc8LNVRWQck.#=z1o0wsZS74F9t(Int32 #=zuALJey8=, #=zHy_Fh23UJG67wLkRPwRgvNKLM7YmZp7wWA== #=z59Ih_BE=)
   在 #=zRk4QIdEMAtKzqp3Z0agSobkMkb30.#=zw$UAjVNlQpLN()
   在 #=zRk4QIdEMAtKzqp3Z0agSobkMkb30.#=zJbbiHl8=(AsyncCallback #=zaHuq6xI=, Object #=zcPQf$1g=)
   在 Aspose.Email.Clients.Imap.ImapClient.BeginListFolders(IConnection connection, String parentFolder, Boolean loadFullInfo, ListFoldersOptions options, ListFoldersReturnOptions returnOptions, AsyncCallback callback, Object state)
   在 Aspose.Email.Clients.Imap.ImapClient.ListFolders()
client.Host = "imap.mail.com";
            client.Username = "";
            client.Password = "";
            client.Port = 993;
            client.Proxy = new SocksProxy("127.0.0.1", 19900, SocksVersion.SocksV5);
            try
            {
                var messageInfoCol = client.ListFolders();
                foreach (var info in messageInfoCol)
                {
                    // Display MIME Message ID
                    Console.WriteLine("Message Id = " + info.Name);
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

aspose email 20.8 , use above use proxy alway get Message "Operation has been canceled
if no proxy , it work fine

the proxy should be ok , because my chrome and telegram work fine

I try another http proxy ,
it get exception bad port

   在 #=zRk4QIdEMAtKzqp3Z0agSobkMkb30.#=zsJNbsFY=(IAsyncResult #=zZdm7cXs=)
   在 #=zRk4QIdEMAtKzqp3Z0agSobkMkb30.#=zsFvFw3A=()
   在 #=z$h5AuA0EccqeXd47c6QRn1viN16ZbI8u6dRXyUU=.#=z2smzR0E=(#=zHy_Fh23UJG67wLkRPwRgvNKLM7YmZp7wWA== #=zCSooSAM=)
   在 #=zOf8ML2_U$sXW4utlLpc8LNVRWQck.#=z1o0wsZS74F9t(Int32 #=zuALJey8=, #=zHy_Fh23UJG67wLkRPwRgvNKLM7YmZp7wWA== #=z59Ih_BE=)
   在 #=zRk4QIdEMAtKzqp3Z0agSobkMkb30.#=zw$UAjVNlQpLN()
   在 #=zRk4QIdEMAtKzqp3Z0agSobkMkb30.#=zJbbiHl8=(AsyncCallback #=zaHuq6xI=, Object #=zcPQf$1g=)
   在 Aspose.Email.Clients.Imap.ImapClient.BeginListFolders(IConnection connection, String parentFolder, Boolean loadFullInfo, ListFoldersOptions options, ListFoldersReturnOptions returnOptions, AsyncCallback callback, Object state)
   在 Aspose.Email.Clients.Imap.ImapClient.ListFolders()
   在 AImap.Class1.GetFolders(Int32 id) 在 E:\vsproject\TestDemo\AImap\Class1.cs 中: 第 110 行

@lsl

It seems to be an issue for investigation and I have created a ticket with ID EMAILNET-39920 in our issue tracking system to further investigate and resolve this on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.