实际上,我正在尝试访问Outlook
Distribution Lists
.
当我尝试使用Visual Studio
.
但是,当我host
打开我的应用程序Windows Server 2012
并尝试domain
使用error
.
我正在使用Outlook 2007
. 我
已经安装了 64 位的64 bit
版本。MS Office 2013
Windows Server
我的代码如下:
Microsoft.Office.Interop.Outlook.Application OApplicaiton = new Microsoft.Office.Interop.Outlook.Application();
var outlook = new Application().GetNamespace("MAPI");
var folder1 = outlook.GetDefaultFolder(OlDefaultFolders.olFolderContacts);
System.Threading.Thread.Sleep(5000);
foreach (var curr in folder1.Items.OfType<DistListItem>())
{
Cmb_GlobalLists.Items.Add(curr.DLName);
}
我error
的是:
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
谁能帮我 ?与PIA有什么关系吗?