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

New Post: Error Getting Messages.Count() Object reference not set to an instance of an object.

$
0
0
Hi rodolfolopes,

I think the exception is thrown because the folders are not getting intialized. From your code above, I can say that you should check if the client has connected and authenticated. Simply check if both, the result of _ImapClient.Connect _and ImapClient.Login are true.

Greets,

Pavel

Viewing all articles
Browse latest Browse all 1952

Trending Articles



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