Hi Folks,
I'm trying to query messages by MessageID from an Exchange server but I keep getting an "Unhandled Exception: System.NotSupportedException: Exchange Protocol does not support "MessageID" as field name" error trying to use MessageID in the query.
I can query the subject line without an issue.
I'm using and evaluation copy of Aspose.Email 3.8.0. I've created the project in Visual Studio 2008 in VB.net using .NET 3.5.
Here's my section of code that is failing:
Dim builder As ExchangeQueryBuilder = New ExchangeQueryBuilder()
builder.MessageId.Equals(Key)
Dim query As MailQuery = builder.GetQuery()
Dim messages As ExchangeMessageInfoCollection = client.ListMessages(client.MailboxInfo.InboxUri, query, False)
The project builds just fine - 0 errors | 0 warnings. It fails with the error message at run-time.
Do you know why this might be failing?
Thanks for your time,
Jeff
↧