We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exchange Server Exception

Hi,

Can you please guide if we are having some wrong code usage here? It is giving exception.

IEWSClient client = …();

ExchangeQueryBuilder builder = new ExchangeQueryBuilder();
builder.InternalDate.Equals(DateTime.Now);

client.ListMessages(client.MailboxInfo.InboxUri, builder.GetQuery());

Hi Aaron,


It seems that you are using wrong function for building the query. InternalDate.Equals() compares the object calling this function with the argument as object. You may please use InternalDate.On() function to for the required comparison. Please give it a try and share your feedback with us.