我正在嘗試設置允許用戶通過我的Web服務 - string subject, DateTime startTime, DateTime dueDate, string body, List<string> recipients, string owner
,然後創建Task
。這在我的機器上正常工作,但在Windows 2003上,我不斷收到不同的錯誤。目前我越來越 - Runtime.InteropServices.COMException: 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)).
Outlook Web服務調用
我正在使用電子郵件訪問帳戶,並已在框中運行。我不確定這是做這件事的最好方法,但這是我得到的。並請善待 - 我是一個.NET Web開發人員,而不是任何Outlook程序員。
我的代碼看起來是這樣的 -
Outlook task = new Outlook();
TaskItem taskItem = (TaskItem)_application.CreateItem(OlItemType.olTaskItem);
taskItem.Subject = subject;
taskItem.StartDate = startTime;
taskItem.DueDate = dueDate;
taskItem.Body = body;
foreach (string recipient in recipients)
{
taskItem.Recipients.Add(recipient);
}
taskItem.Owner = owner;
taskItem.Assign();
task.EntryId = taskItem.EntryID;
if (taskItem.Saved)
{
task.Successful = true;
}
return task;
已設置爲True。我在服務器上安裝了Office 2007。我會檢查你推薦的PIA。謝謝。 – Merds 2011-04-18 14:50:43