M
markus.kraemer
Hi,
when I use GetSharedDefaultFolder() with Exchange-Users "User1" within
a
C# COMAddin, Outlook doesn't shutdown properly. If the user "User2" is
resolved, everthing works fine.
I have no idea anymore. Any help is welcome.
Thanks,
Markus
The Code is:
======================================================================
Outlook.ApplicationClass oOutlook = new ApplicationClass();
Outlook.NameSpace oNS = oOutlook.GetNamespace("MAPI");
Recipient oRep=oNS.CreateRecipient("User1");
oRep.Resolve();
MAPIFolder oFolder =
oNS.GetSharedDefaultFolder(oRep,olDefaultFolders.olFolderCalendar);
Marshal.ReleaseComObject(oOutlook);
oOutlook=null;
Marshal.ReleaseComObject(oNS);
oNS=null;
Marshal.ReleaseComObject(oRep);
oRep=null;
Marshal.ReleaseComObject(oFolder);
oFolder=null;
when I use GetSharedDefaultFolder() with Exchange-Users "User1" within
a
C# COMAddin, Outlook doesn't shutdown properly. If the user "User2" is
resolved, everthing works fine.
I have no idea anymore. Any help is welcome.
Thanks,
Markus
The Code is:
======================================================================
Outlook.ApplicationClass oOutlook = new ApplicationClass();
Outlook.NameSpace oNS = oOutlook.GetNamespace("MAPI");
Recipient oRep=oNS.CreateRecipient("User1");
oRep.Resolve();
MAPIFolder oFolder =
oNS.GetSharedDefaultFolder(oRep,olDefaultFolders.olFolderCalendar);
Marshal.ReleaseComObject(oOutlook);
oOutlook=null;
Marshal.ReleaseComObject(oNS);
oNS=null;
Marshal.ReleaseComObject(oRep);
oRep=null;
Marshal.ReleaseComObject(oFolder);
oFolder=null;