[System.Runtime.InteropServices.COMException] {"Interface not registered (Exception from HRESULT: 0x80040155)"}
unreadItemcounts
appOutlook = new Outlook.Application(); nsOlApp = appOutlook.GetNamespace("MAPI"); nsOlApp.Logon(Type.Missing,Type.Missing, true, true); // nsOlApp.Logon(Type.Missing, Type.Missing, Type.Missing, Type.Missing); oFolder = nsOlApp.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox); foreach (Outlook.MAPIFolder fldr in oFolder.Folders) { MessageBox.Show(fldr.Name.ToString()); }
Interop.excel.Dll
Excel.Exe
0x8
REGSVR32 OLE32.DLL
ole32.dll succeeded
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)