What is this error in Outlook plugin log?

Test pass however sidepanel shows otherwise~

Log error below:

2018-12-05 17:00:00,481 [VSTA_Main] ERROR Sugar.Outlook.Outlook - RDOSession can't be initialized
System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.Outlook.ApplicationClass.get_Session()
at Sugar.Outlook.Outlook.OpenRDOSession()

Does anybody knows how to solve this error?

  • Hi Yan Yu Yong 

    Take a look at this article.

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • Hi Yan Yu Yong

    I haven´t seen this specific error. Have you tried to completely uninstall (along with the profile settings), re-boot, and install again?

    HTH,

    KGM

  • Need IT assistance on re-installing outlook. Will update if error is gone after re-installing.

    Thanks guys. Fast and great ^^

  • I had reinstalled outlook 2013 in windows 10. 

    The errors are still there.

    Logs for plug in version 2.5 below:

    2018-12-26 13:34:59,681 [VSTA_Main] ERROR Sugar.Outlook.Outlook - RDOSession can't be initialized
    System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
    at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
    at Microsoft.Office.Interop.Outlook.ApplicationClass.get_Session()
    at Sugar.Outlook.Outlook.OpenRDOSession()
    2018-12-26 13:35:01,869 [VSTA_Main] ERROR Sugar.Outlook.Outlook - RDOSession can't be initialized
    System.Exception: RDOSession can't be initialized ---> System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
    at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
    at Microsoft.Office.Interop.Outlook.ApplicationClass.get_Session()
    at Sugar.Outlook.Outlook.OpenRDOSession()
    --- End of inner exception stack trace ---
    at Sugar.Outlook.Outlook.OpenRDOSession()
    at Sugar.Outlook.DTO.OutlookObjectBaseOOM.GetRDOObjectFromOOMObject(Object outlookObject)
    at Sugar.Outlook.DTO.OutlookObjectMail.GetRDOMail()
    at Sugar.Outlook.DTO.OutlookObjectMail.GetRDORecipients()
    at Sugar.Outlook.DTO.OutlookMailMessage.GetEmailAddresses()
    at SugarOutlook.UI.SidePanel.Model.Mail.SPMailObjectModel.<>c__DisplayClass23_0.<GetEmailAddressesAsync>b__0()
    at System.Threading.Tasks.Task`1.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at SugarOutlook.UI.SidePanel.Model.Mail.SPMailObjectModel.<LoadEmailModels>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at SugarOutlook.UI.SidePanel.ViewModel.Mail.SPMailObjectViewModel.<LoadEmailsAsync>d__27.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at SugarOutlook.UI.SidePanel.ViewModel.SPOutlookObjectViewModel.HandleException(ExceptionDispatchInfo capturedException)
    2018-12-26 13:35:01,870 [VSTA_Main] ERROR Sugar.Outlook.Outlook - RDOSession can't be initialized
    System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
    at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
    at Microsoft.Office.Interop.Outlook.ApplicationClass.get_Session()
    at Sugar.Outlook.Outlook.OpenRDOSession()

    Logs for plug in version 2.6.1 below:

    2018-12-26 13:40:20,645 [VSTA_Main] INFO SugarOutlook.SugarServiceController - Sugar Instance Version : 8.0.0 (ENT)
    2018-12-26 13:40:21,088 [VSTA_Main] ERROR SugarOutlook.UI.SidePanel.ViewModel.SPOutlookObjectViewModel - SidePanel data load error
    System.Exception: RDOSession can't be initialized ---> System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
    at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
    at Microsoft.Office.Interop.Outlook.ApplicationClass.get_Session()
    at Sugar.Outlook.Outlook.OpenRDOSession()
    --- End of inner exception stack trace ---
    at Sugar.Outlook.Outlook.OpenRDOSession()
    at Sugar.Outlook.DTO.OutlookObjectBaseOOM.GetRDOObjectFromOOMObject(Object outlookObject)
    at Sugar.Outlook.DTO.OutlookObjectMail.GetRDOMail()
    at Sugar.Outlook.DTO.OutlookObjectMail.GetRDORecipients()
    at Sugar.Outlook.DTO.OutlookMailMessage.GetRecipients()
    at Sugar.Outlook.DTO.OutlookMailMessage.GetEmailAddresses()
    at SugarOutlook.UI.SidePanel.Model.Mail.SPMailObjectModel.<>c__DisplayClass24_0.<GetEmailAddressesAsync>b__0()
    at System.Threading.Tasks.Task`1.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at SugarOutlook.UI.SidePanel.Model.Mail.SPMailObjectModel.<LoadEmailModels>d__20.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at SugarOutlook.UI.SidePanel.ViewModel.Mail.SPMailObjectViewModel.<LoadEmailsAsync>d__27.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at SugarOutlook.UI.SidePanel.ViewModel.SPOutlookObjectViewModel.HandleException(ExceptionDispatchInfo capturedException)
    2018-12-26 13:40:21,089 [VSTA_Main] ERROR SugarOutlook.UI.SidePanel.ViewModel.SPOutlookObjectViewModel - SidePanel data load error
    System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
    at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
    at Microsoft.Office.Interop.Outlook.ApplicationClass.get_Session()
    at Sugar.Outlook.Outlook.OpenRDOSession()

  • Have you make sure VSTO have been installed correctly?

    reinstall the plugin but make sure you've unzipped the install package before executing and run the setup with admin privileges. Also Outlook should be closed during installation.

    Bests

    Björn

  • This can be caused by wrong registry keys left from previous installed versions of Microsoft Office. Usually this is a case when Office was downgraded. In order to fix this problem you need to remove these wrong registry keys.

    1. Close all instances of Microsoft Outlook.
    2. Open the Windows Registry Editor (run regedit.exe).
    3. Navigate to the following registry path: HKEY_CLASSES_ROOT\TypeLib\{00062FFF-0000-0000-C000-000000000046}.
    4. Check what keys you have in this path. Each version of Outlook has its key:
      • For Outlook 2010 the key is 9.4.
      • For Outlook 2013 the key is 9.5.
      • For Outlook 2016 the key is 9.6.
    5. You need to keep only one key that corresponds to installed Outlook version. All other keys have to be removed.
    6. Restart your system for the changes to take effect.
  • tried this and the key is correct. thanks for the infor. and clear steps

  • Tried this as well and it worked. Thanks a lot for the good instructions.

    Log Entry was as follows:

    "at SugarOutlook.UI.SidePanel.ViewModel.SPOutlookObjectViewModel.HandleException(ExceptionDispatchInfo capturedException)
    2020-02-19 18:30:24,534 [VSTA_Main] ERROR SugarOutlook.UI.SidePanel.ViewModel.SPOutlookObjectViewModel - [2.7.1:2013x32] SidePanel data load error
    System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook._MailItem'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063034-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))."