Forum Discussion
4 Replies
- Doreen_P11 months agoMYOB Moderator
Hi HAustralia
Is the error message you received has the option to "View error details"? Just like the screenshot below.
If so, just click on the View error details to view the diagnostic log. Once you're able to get the log, you can refer to this link and locate the the specific Code related to your error. Let me know if you need more assistance with this.
Best regards,
Doreen
- HAustralia11 months agoContributing Cover User
AccountRight Application Error Report
=====================================
Application Version: 2024.5.1.7
Application File Version: 2024.5.1.7
Incident Id: a09f0d50-edc1-4bba-bce3-460616da9491
Time: Thursday, 4 July 2024 12:36:21 PMCode:
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!0x06004344!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!0x06000079!MYOB.Huxley.MsOffice.Integration.OutlookEmail.OutlookEmailProvider.SendMessage(String emailAddresses, String subject, String body, EmailResourceType resourceType, String documentNumber, IEnumerable`1 attachments) +0xc2
at Huxley.UI.Controllers!0x0600311e!MYOB.Huxley.UI.Controllers.Helpers.NotificationHelper.<>c__DisplayClass46_0.<SendMessageWithForm>b__1() +0x68
at Huxley.UI.Controllers!0x0600208b!MYOB.Huxley.UI.Controllers.Helpers.NotificationHelper.TrackAndPerformSendEmailLocally(Func`1 sendEmail, EmailResourceType resourceType, Nullable`1 companyDataFileId, Nullable`1 invoiceId) +0x3e
at Huxley.UI.Controllers!0x06002083!MYOB.Huxley.UI.Controllers.Helpers.NotificationHelper.SendMessageWithForm(String to, String subject, String body, String pdfFileName, EmailResourceType resourceType, FormTemplateDefinition formTemplateDefinition, FormPrintingParams formPrintingParams, IEnumerable`1 attachments, Nullable`1 entityUid, LayoutType layoutType, String documentNumber, Boolean useSms, String toName, String toPhoneNumber, String formattedAmount) +0x1bb
at Huxley.UI.Controllers!0x0600194a!MYOB.Huxley.UI.Controllers.Payroll.EmailPaySlipsController.SendEmailsOneByOne() +0xaa
at Huxley.UI.Controllers!0x06002f0d!MYOB.Huxley.UI.Controllers.Payroll.EmailPaySlipsController.<>c__DisplayClass33_0.<SendEmails>b__1() +0x0
at Huxley.UI.Controllers!0x0600194d!MYOB.Huxley.UI.Controllers.Payroll.EmailPaySlipsController.PerformActionWithWaitAnimationSpinner(Action action, Boolean disableForm) +0x1a
at Huxley.UI.Controllers!0x06001948!MYOB.Huxley.UI.Controllers.Payroll.EmailPaySlipsController.SendEmails() +0x59
at Huxley.UI.Forms!0x06002f6f!MYOB.Huxley.UI.Forms.Payroll.EmailPaySlips.<OnOkClicked>b__16_1() +0x0
at Huxley.UI.Forms!0x060026f1!MYOB.Huxley.UI.Forms.BaseForms.BaseViewContainer.PerformAction(Action methodToPerform) +0x16
at Huxley.UI.Forms!0x06002f5e!MYOB.Huxley.UI.Forms.Payroll.EmailPaySlips.OnOkClicked(ButtonClickedArgs args) +0x89
at Huxley.UI.Forms!0x06002fec!MYOB.Huxley.UI.Forms.Payroll.ReviewPaySlipsBeforeDelivery.OnOkClicked(ButtonClickedArgs args) +0x6f
at Huxley.UI.Forms!0x060023d2!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.CallButtonClicked(Action`1 execute, ButtonClickedArgs args, String buttonText) +0x12
at Huxley.UI.Forms!0x0600234c!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.btnOk_Click(Object sender, EventArgs e) +0x30
at System.Windows.Forms!0x06001169!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!0x06001250!System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) +0x184
at System.Windows.Forms!0x06001260!System.Windows.Forms.Control.WndProc(Message& m) +0x49f
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!0x060063eb!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) +0x0
at System.Windows.Forms!0x060063ee!System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) +0x8e
at System.Windows.Forms!0x0600314d!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=2024.5.1.7, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:8abd78d2fc61482a82c9ca4176c3b5bf; A:1
MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers, Version=2024.5.1.7, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:bc34e4edadd84a1da6e2b241062d90b9; A:1
MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2024.5.1.7, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:d6b7fe52b4f24e858d737eaec284fe8f; 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:837932c0a5264ffbaa23942d25c6ecd1; A:2
MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:4f38ceb21d204c87b3ee28d3e54c7dcb; A:1----------------------------------------
- HAustralia11 months agoContributing Cover User
it will also automatically pop up this email
- Doreen_P11 months agoMYOB Moderator
Hi HAustralia
Thanks for providing the diagnostic log. As I check the log it has the code: System.InvalidCastException. A viable workaround if you are working online is to use the online emailing function instead of Outlook. You can check this Community Forum post for more information. Don't hesitate to post again if you encounter issues in the future.
Best regards,
Doreen
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Find technical support and help for all MYOB products in our online help centre
Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.