Free Support Forum - aspose.com

Why does Pop3Client hang at connection?

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We are using Aspose.Network version 6.3.0.0

Here is our code:

Pop3Client pop3Client = new Pop3Client(pop.gmail.com, 995, “username”, “password”);<o:p></o:p>

try<o:p></o:p>

{<o:p></o:p>

pop3Client.Connect(true);

}<o:p></o:p>

catch (Exception ex)<o:p></o:p>

{<o:p></o:p>

pop3Client.Disconnect();<o:p></o:p>

pop3Client.Dispose();

throw new Exception(message, ex);

}<o:p></o:p>

<o:p> </o:p>

<o:p> </o:p>

We have a task that calling the above code
periodically. Most of the time it goes well, but we found sometimes the above
code hangs at the statement of Pop3Client.Connect(true
). No errors and apparently no time-out
either. We have to kill the process to let the code get out of stuck.<o:p></o:p>

We
could not reproduce this problem. We only know it happened. Could you explain to us what can be the cause of code freezing at connect?

Thanks,

Michelle

Hi Michelle,


We are sorry for the inconvenience you are facing.

I would like to share with you that Aspose.Network has now evolved into Aspose.Email (please refer to the Migration Guide in this regard) and would request you to please download and use the latest version Aspose.Email for .NET 2.2.0. Please let us know your feedback if you hit the same situation ever again with this latest version. We will investigate it and assist you further as soon as possible.