Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: System.FormatException while downloading messages

$
0
0
Hi Pavel, I've this issue: A first chance exception of type 'System.FormatException' occurred in System.dll the code is: I've tried several MessageFetchMode. If I use MessageFetchMode.Size it works, but the code raises the same exception at the m.Download
Here is the complete code: ' connection is ok Dim f As ImapX.Folder = cli.Folders.Inbox f.Messages.Download("UNSEEN", Enums.MessageFetchMode.Tiny) For Each m As ImapX.Message In f.Messages m.Download(Enums.MessageFetchMode.Tiny) Dim mySubject As String = m.Subject.ToString.ToUpper
Debug.Print(m.Subject) Next Then, while iterating, the progams always hangs itself at the m.Download (iteration n. 8, maybe depending on the message content ?) How can I solve this issue ? Thanks Francesco

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>