我正在尝试设置允许用户通过我的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