AccountRight Application Error Report
=====================================
Application Version: 2021.4.24.4393
Application File Version: 2021.4.24.4417
Incident Id: 0c2dd40a-4152-4725-9521-e29889f21bff
Time: Wednesday, July 28, 2021 9:49:40 AM
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: Interface not registered (Exception from HRESULT: 0x80040155).
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: Interface not registered (Exception from HRESULT: 0x80040155).
at mscorlib!0x06004227!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!0x06000078!MYOB.Huxley.MsOffice.Integration.OutlookEmail.OutlookEmailProvider.SendMessage(String emailAddresses, String subject, String body, EmailResourceType resourceType, String documentNumber, IEnumerable`1 attachments) +0xf4
at Huxley.UI.Controllers!0x06002531!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) +0xd0
at Huxley.UI.Controllers!0x06001545!MYOB.Huxley.UI.Controllers.Banking.PrintAdvicesEmailController.<SendEmailsOneByOne>b__59_0(EmailHelper helper) +0x0
at Huxley.UI.Controllers!0x06002535!MYOB.Huxley.UI.Controllers.Helpers.EmailHelper.SendEmail(Func`2 doSend) +0x0
at Huxley.UI.Controllers!0x0600153d!MYOB.Huxley.UI.Controllers.Banking.PrintAdvicesEmailController.SendEmailsOneByOne() +0x35
at Huxley.UI.Controllers!0x06002c4b!MYOB.Huxley.UI.Controllers.Banking.PrintAdvicesEmailController.<>c__DisplayClass57_0.<SendEmails>b__1() +0x0
at Huxley.UI.Controllers!0x06001542!MYOB.Huxley.UI.Controllers.Banking.PrintAdvicesEmailController.PerformActionWithWaitAnimationSpinner(Action action, Boolean disableForm) +0x15
at Huxley.UI.Controllers!0x0600153b!MYOB.Huxley.UI.Controllers.Banking.PrintAdvicesEmailController.SendEmails() +0x61
at Huxley.UI.Forms!0x06002cf4!MYOB.Huxley.UI.Forms.Banking.PrintAdvicesEmailView.<OnOkClicked>b__17_1() +0x0
at Huxley.UI.Forms!0x06002b90!MYOB.Huxley.UI.Forms.BaseForms.BaseViewContainer.PerformAction(Action methodToPerform) +0x16
at Huxley.UI.Forms!0x06002cd6!MYOB.Huxley.UI.Forms.Banking.PrintAdvicesEmailView.OnOkClicked(ButtonClickedArgs args) +0xd5
at Huxley.UI.Forms!0x06002cfc!MYOB.Huxley.UI.Forms.Banking.PrintAdvices.OnOkClicked(ButtonClickedArgs args) +0x6f
at Huxley.UI.Forms!0x06002875!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.CallButtonClicked(Action`1 execute, ButtonClickedArgs args, String buttonText) +0x12
at Huxley.UI.Forms!0x060027ef!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.btnOk_Click(Object sender, EventArgs e) +0x30
at System.Windows.Forms!0x06000e17!System.Windows.Forms.Control.OnClick(EventArgs e) +0x19
at DevExpress.XtraEditors.v17.1!0x06000d4f!DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e) +0x2e
at DevExpress.XtraEditors.v17.1!0x06000d48!DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e) +0x1d
at System.Windows.Forms!0x06000efe!System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) +0x184
at System.Windows.Forms!0x06000f0e!System.Windows.Forms.Control.WndProc(Message& m) +0x62c
at DevExpress.Utils.v17.1!0x06002708!DevExpress.Utils.Controls.ControlBase.WndProc(Message& m) +0x2e
at DevExpress.XtraEditors.v17.1!0x06000256!DevExpress.XtraEditors.BaseControl.WndProc(Message& msg) +0x0
at System.Windows.Forms!0x0600571d!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) +0x0
at System.Windows.Forms!0x06005720!System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) +0x8e
at System.Windows.Forms!0x06002dec!System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) +0x25
==========
MODULE: DevExpress.Utils.v17.1 => DevExpress.Utils.v17.1, Version=17.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a; G:b8c34c059b804930811d5f6d50999b6c; A:1
MODULE: DevExpress.XtraEditors.v17.1 => DevExpress.XtraEditors.v17.1, Version=17.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a; G:6df94e55f5bd4444b910d4b2a37076a4; A:1
MODULE: Huxley.MsOffice.Integration => Huxley.MsOffice.Integration, Version=2021.4.24.4393, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:bb9e340b9b9e4d68a0b5a3f9f97467ca; A:1
MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers, Version=2021.4.24.4393, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:d86dc935223e4cf9b35e44c0448127b2; A:1
MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2021.4.24.4393, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:71ace125b0be41bdb77dd68eaec1d56b; 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:64a2f1708bfd4155a0797bb182b1edb2; A:2
MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:cfb05836f5354f9e97546329ee52bcdd; A:1
----------------------------------------