ImapClient.FetchMessage(uniqueId) throwing NotSupportedException

Hi,


When I FetchMessage(uniqueId) (was happening using sequence number as well) I sometimes receive “System.NotSupportedException, stream does not support reading”, stack trace below.

Stack Trace: at Aspose.Email.Mail.MailMessage.(Stream , LoadOptions& )
at Aspose.Email.Mail.MailMessage.(Stream , LoadOptions )
at Aspose.Email.Mail.MailMessage.Load(Stream stream)
at Aspose.Email.Imap.ImapClient.EndFetchMessage(IAsyncResult asyncResult)
at Aspose.Email.Imap.ImapClient.FetchMessage(String uniqueId)

This doesn’t appear to be happening on a specific email nor is it consistent. We are however having timeout problems, is it possible this issue is timeout related?
I can’t see any other possibility for this, please help.

Regards
Mat
Click2Scan

Hi Mat,

Thank you for writing to Aspose Support team.

We have tested this issue at our end with the latest version of Aspose.Email for .NET 6.3.0 and were not able to face any issue. The issue was tested with around 1000+ emails and all the emails were fetched successfully without raising an exception. Enabling ImapClient Activity logging may provide some information about the nature of problem. Please try it and share the output log file with us if you face the issue again.