Read out Subfolders of Outlook Global Adresslist
Hi There,
in my application i'm using following code to get subfolders of an Outlook adressbook:
[code]
foreach (Microsoft.Office.Interop.Outlook.Folder subfolder in folder.Folders) { Debug.WriteLine(subfolder); }
[/code]
This procedure does often work without problems. But sometimes i get following error message:
"An Exception occured HRESULT: 0xD6A40305 - by System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) by System.Runtime.InteropServices.CustomMarshalers.EnumeratorViewOfEnumVariant.MoveNext()"
I can't find anything about "HRESULT: 0xD6A40305" in the internet. Does anybody know this kind of problem or the reason why it appears?
Best Regards
Marco