AR 2016 / Outlook 2016 - InvalidCastException - believe there may be registry fix for this ?
AccountRight Application Error Report
=====================================
Application Version: 2016.1.18.1195
Application File Version: 2016.1.18.2675
Incident Id: 127a54f5-ab86-4872-b09d-da52d9c2cf5d
Time: Friday, 6 May 2016 3:10:35 PM
Code:
System.InvalidCastException
Message:
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)).
Stack Trace
----------------------------------------
1 : System.InvalidCastException
----------------------------------------
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 mscorlib!0x06004047!System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.Outlook!0x06002365!Microsoft.Office.Interop.Outlook.ApplicationClass.CreateItem(OlItemType ItemType)
at Huxley.MsOffice.Integration!0x06000089!MYOB.Huxley.MsOffice.Integration.OutlookEmail.OutlookEmailProvider.SendMessage(String emailAddresses, String subject, String body, EmailResourceType resourceType, String documentNumber, IEnumerable`1 attachments) +0xf0
at Huxley.UI.Controllers!0x0600062d!MYOB.Huxley.UI.Controllers.Helpers.EmailHelper.SendEmail(String to, String subject, String body, String pdfFileName, EmailResourceType resourceType, FormTemplateDefinition formTemplateDefinition, FormPrintingParams formPrintingParams, IEnumerable`1 attachements, Nullable`1 entityUid, LayoutType layoutType, String documentNumber) +0x5c
at Huxley.UI.Controllers!0x0600157a!MYOB.Huxley.UI.Controllers.Sales.PrintInvoicesEmailController.<SendEmailsOld>b__11(EmailHelper helper) +0x71
at Huxley.UI.Controllers!0x06000631!MYOB.Huxley.UI.Controllers.Helpers.EmailHelper.SendEmail(Func`2 doSend) +0x0
at Huxley.UI.Controllers!0x0600156d!MYOB.Huxley.UI.Controllers.Sales.PrintInvoicesEmailController.SendEmailsOld(EmailHelper emailHelper) +0xd
at Huxley.UI.Forms!0x06003b93!MYOB.Huxley.UI.Forms.Sales.PrintInvoicesEmailView.<>c__DisplayClass9.<OnOkClicked>b__7() +0x0
at Huxley.UI.Forms!0x0600008a!MYOB.Huxley.UI.Forms.BaseForms.BaseViewContainer.PerformAction(Action methodToPerform) +0x16
at Huxley.UI.Forms!0x06003b91!MYOB.Huxley.UI.Forms.Sales.PrintInvoicesEmailView.<>c__DisplayClass9.<OnOkClicked>b__6() +0x18
at Huxley.UI.Controllers!0x0600156e!MYOB.Huxley.UI.Controllers.Sales.PrintInvoicesEmailController.PerformActionWithWaitAnimationSpinner(Action action, Boolean disableForm) +0x15
at Huxley.UI.Forms!0x06001868!MYOB.Huxley.UI.Forms.Sales.PrintInvoicesEmailView.OnOkClicked(ButtonClickedArgs args) +0x18d
at Huxley.UI.Forms!0x06001836!MYOB.Huxley.UI.Forms.Sales.PrintInvoices.OnOkClicked(ButtonClickedArgs args) +0x3b
at Huxley.UI.Forms!0x060006f8!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.CallButtonClicked(Action`1 execute, ButtonClickedArgs args, String buttonText) +0x12
at Huxley.UI.Forms!0x06000676!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.btnOk_Click(Object sender, EventArgs e) +0x32
at System.Windows.Forms!0x06000d41!System.Windows.Forms.Control.OnClick(EventArgs e) +0x19
at DevExpress.XtraEditors.v14.2!0x06000b65!DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e) +0x2e
at DevExpress.XtraEditors.v14.2!0x06000b5f!DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e) +0x45
at System.Windows.Forms!0x06000e20!System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) +0x184
at System.Windows.Forms!0x06000e30!System.Windows.Forms.Control.WndProc(Message& m) +0x62f
at DevExpress.Utils.v14.2!0x060013fb!DevExpress.Utils.Controls.ControlBase.WndProc(Message& m) +0x2e
at DevExpress.XtraEditors.v14.2!0x060001c5!DevExpress.XtraEditors.BaseControl.WndProc(Message& msg) +0x0
at System.Windows.Forms!0x060053e7!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) +0x0
at System.Windows.Forms!0x060053ea!System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) +0x8e
at System.Windows.Forms!0x06002c68!System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) +0x25
==========
MODULE: DevExpress.Utils.v14.2 => DevExpress.Utils.v14.2, Version=14.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a; G:8816a7c165b24a3d8d93692e6a3c1f89; A:1
MODULE: DevExpress.XtraEditors.v14.2 => DevExpress.XtraEditors.v14.2, Version=14.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a; G:aa653019eaec439383600077d15e01f3; A:1
MODULE: Huxley.MsOffice.Integration => Huxley.MsOffice.Integration, Version=2016.1.18.1195, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:39944241d2ae47568a1dbd13df9d7314; A:1
MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers, Version=2016.1.18.1195, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:e52424e662b744af8d7407230656c199; A:1
MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2016.1.18.1195, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:61110234e095401c966de06187fc1df7; A:1
MODULE: Microsoft.Office.Interop.Outlook => Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c;
MODULE: mscorlib => mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:63db3722355b40c2adc19d57ea45cb21; A:2
MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:eb5cb7959d814f46a194daf569c175ff; A:1