I'm trying to use the following to retrieve a MailItem from Outlook via entryID and storeID. What do I do when the entryID/storeID aren't valid? I get a strange COMException saying that the action failed or that there's been a networking problem with Exchange or that it's not running. When I test for valid entryIDs/storeIDs it seems to work swell.
Outlook.Application app = new Outlook.Application;
Outlook.Namespace ns = app.GetNamepace("MAPI");
Outlook.MailItem mailItem = ns.GetItemFromId("myMailItemEntryId","myMailItemParentStoreID");