应该检查插件的清单文件是否存在错误。此外,将以下代码示例添加到插件的代码中,可解决此问题:
private void Application_ItemSend(object Item, ref bool Cancel)
{
if (Item is Outlook.AppointmentItem)
{
Outlook.AppointmentItem apptItem = Item as Outlook.AppointmentItem;
if (apptItem != null)
{
//code here
}
}
}
这个代码片段需要在Outlook插件中的ThisAddIn.cs文件中添加。如果此代码已存在,可更改其名称或注释掉对问题的具体引用。