Getting below error. Some time working fine some time error - while move mail to other folder
Microsoft.Exchange.WebServices.Data.ServiceResponseException: The specified object was not found in the store.
at Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalMoveItems(IEnumerable`1 itemIds, FolderId destinationFolderId, Nullable`1 returnNewItemIds, ServiceErrorHandling errorHandling)
at Microsoft.Exchange.WebServices.Data.ExchangeService.MoveItem(ItemId itemId, FolderId destinationFolderId)
at Microsoft.Exchange.WebServices.Data.Item.Move(FolderId destinationFolderId)
at ExchangeAutoReplyService.Business.ExchangeAutoReply.MoveToSuspectAutoReplyFolder(ExchangeService service))
Getting below error. EmailMessage current = EmailMessage.Bind(service, id); - while binding
Some time works fine some time throws error as follows :
Microsoft.Exchange.WebServices.Data.ServiceResponseException: The specified object was not found in the store.at Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalBindToItems(IEnumerable`1 itemIds, PropertySet propertySet, ServiceErrorHandling errorHandling)
at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToItem(ItemId itemId, PropertySet propertySet)
at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToItem[TItem](ItemId itemId, PropertySet propertySet)
at Microsoft.Exchange.WebServices.Data.EmailMessage.Bind(ExchangeService service, ItemId id)
at ExchangeAutoReplyService.Business.ExchangeAutoReply.AutoReplyToSender(ExchangeService service, String mailboxEmailId))
Jagdish