I maintain an application that uses direct XML to access EWS, not the managed API. One part of the code uses FindFolder to obtain the list of user folders. This normally works fine but for one of my customers, the call is returning the error message "The specified object was not found in the store.". Here is the XML:
<FindFolder Traversal="Deep" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><FolderShape><t:BaseShape>Default</t:BaseShape></FolderShape><IndexedPageFolderView MaxEntriesReturned="500" Offset="0" BasePoint="Beginning"/><ParentFolderIds><t:DistinguishedFolderId Id="msgfolderroot"><t:Mailbox><t:EmailAddress>rwilke@appleone.com</t:EmailAddress></t:Mailbox></t:DistinguishedFolderId></ParentFolderIds></FindFolder>
I thought perhaps it was objecting to the mailbox, maybe the user doesn't exist, but when I tried that theory with a mailbox that is definitely non-existent, there is a more normal error message about a non-existent mailbox. Could it be objecting to the DistinguishedFolderId? Again, works fine for my own test account.