I am using latest version of Aspose.Email version 24.6.0.
Following code works in .NET 7 but fails in .NET 8.
var client = GetExchangeEwsClient();
ExchangeMailboxInfo mailboxInfo = client.GetMailboxInfo(_exchangeConfig.MailBoxAddress);
ExchangeQueryBuilder builder = new ExchangeQueryBuilder();
var lastRunDateTime = LastRunDateTime();
builder.InternalDate.Since(lastRunDateTime, DateComparisonType.ByDateTime);
var directoryName = _exchangeConfig.DownloadFolder;
var query = builder.GetQuery();
// Following line throws error:
**var msgCollection = client.ListMessages(mailboxInfo.InboxUri, query, false);**
//System.InvalidOperationException: Enumeration has not started. Call MoveNext
Any help would be appreciated.