我正在使用Visual Studio 2010创建Outlook 2010添加。我尝试创建一个新的Outlook AppointmentItem,并认为我可以最终将其添加到日历中。80040154类未注册Outlook 2010中的错误加入
Microsoft.Office.Interop.Outlook.AppointmentItem tempApp = new Microsoft.Office.Interop.Outlook.AppointmentItem();
但是,当AddIn运行并trys创建AppointmentItem对象时,我得到上述行上的此错误。
System.Runtime.InteropServices.COMException was unhandled by user code
Message=Retrieving the COM class factory for component with CLSID {00061030-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Source=mscorlib
ErrorCode=-2147221164
我能做些什么来“注册课程”?我猜它必须以某种方式处理Microsoft.Office.Interop.Outlook.dll。
尝试安装/重新安装outlook,从我在其他论坛上阅读,这可能会做诡计 –