System.TypeLoadException in Aspose.email

Aspose.email version : 20.9.1
OS : Mac 10.14
Compiler: Visual Studio for mac 2019
Language: .NET

I am using aspose.email.clients.imap to convert IMAP messages.

ImapClient.FetchMessage(ImapMessageInfo.UniqueId) is throwing below exception for one client.

1/13/2021 2:56:38 PM AsposeException: Cannot load type ‘System.IO.Stream, netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’.
—> System.TypeLoadException: Cannot load type ‘System.IO.Stream, netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’.
at . (System.Int32 , , System.Boolean& , System.Boolean ) [0x001f6] in <58917dfa3ea345051381741e8b0661b2>:0
at . (System.Int32 , System.Boolean ) [0x00032] in <58917dfa3ea345051381741e8b0661b2>:0
at . (System.Object[] ) [0x00035] in <58917dfa3ea345051381741e8b0661b2>:0
at . (System.Object[] , System.Type[] , System.Type[] , System.Object[] ) [0x00028] in <58917dfa3ea345051381741e8b0661b2>:0
at . (System.IO.Stream , System.String , System.Object[] , System.Type[] , System.Type[] , System.Object[] ) [0x0000f] in <58917dfa3ea345051381741e8b0661b2>:0
at . (System.IO.Stream , System.String , System.Object[] ) [0x00000] in <58917dfa3ea345051381741e8b0661b2>:0
at Aspose.Email.MailMessage. (System.IO.Stream , Aspose.Email.EmlLoadOptions ) [0x00019] in <58917dfa3ea345051381741e8b0661b2>:0
at Aspose.Email.MailMessage. (System.IO.Stream , Aspose.Email.EmlLoadOptions ) [0x00000] in <58917dfa3ea345051381741e8b0661b2>:0
at Aspose.Email.MailMessage. (System.IO.Stream , Aspose.Email.LoadOptions ) [0x00084] in <58917dfa3ea345051381741e8b0661b2>:0
at Aspose.Email.MailMessage.Load (System.IO.Stream stream) [0x00000] in <58917dfa3ea345051381741e8b0661b2>:0
at ​ . ​ () [0x00035] in <58917dfa3ea345051381741e8b0661b2>:0
at . () [0x000c1] in <58917dfa3ea345051381741e8b0661b2>:0
— End of inner exception stack trace —
at . ​ (System.IAsyncResult ) [0x000cd] in <58917dfa3ea345051381741e8b0661b2>:0
at . ​ () [0x00000] in <58917dfa3ea345051381741e8b0661b2>:0
at Aspose.Email.Clients.EmailClient. (System.IAsyncResult ) [0x0000a] in <58917dfa3ea345051381741e8b0661b2>:0
at Aspose.Email.Clients.Imap.ImapClient.​ (System.IAsyncResult ) [0x00000] in <58917dfa3ea345051381741e8b0661b2>:0
at Aspose.Email.Clients.Imap.ImapClient.FetchMessage (System.String uniqueId) [0x0000a] in <58917dfa3ea345051381741e8b0661b2>:

I need your help to find the root cause of this exception.

@sangapankaj

Can you please provide the working sample code reproducing the issue on your end so that we may investigate the issue further on our end. Please also try using latest Aspose.Email for .NET 20.12 on your end as well first.