我正在使用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,從我在其他論壇上閱讀,這可能會做詭計 –