You're going to have to do detective work on that. Does this happen on a
repeatable basis with certain folders? How are those folders opened, are
they part of a PST file or Exchange mailbox or Exchange public folders or
delegate mailboxes? Are they from custom stores?
If this is totally random and not repeatable at all, even on the same
folder, then that's one of the hardest things to figure out. If you can
discern some pattern that will lead to a solution.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"j" wrote in message
...
this is my code:
OL.MAPIFolder mapiFolder = GetDedicatedFolderForUserID(userID);
if (mapiFolder != null)
{
folderName = mapiFolder.Name;
}
and i get exception:
System.Runtime.InteropServices.COMException (0x8624010F): The
operation failed.
at Microsoft.Office.Interop.Outlook.MAPIFolder.get_Na me()
at
ActionBase.Office.OutlookAddIn.Managers.OutlookFol derManager.GetDedicatedFolderNameForUserID
(Int64 userID)
So, the object is valid. It's not null, so i suppose that it valid.
And why this strange exception occured?, it's happen from time to
time, very seldom, but may occur.
Any ideas??