Myob wont send emails using outlook 2016

Andrearooney
1 Post
User

1Posts

0Kudos

0Solutions

Myob wont send emails using outlook 2016

Hello 

 

Need some help, when i try to send emails from MYOB using outlook 2016 it just says something went wrong and freezes. i have put the error log below. 

I have tried uninstalling both office and myob and reinstalling with no luck. outlook is the default email account and the email i want it sent from is also the default email. 

 

 

AccountRight Application Error Report
=====================================
Application Version: 2019.2.22.2609
Application File Version: 2019.2.22.5066
Incident Id: 8e36de99-ea94-4508-86fb-b40f537de914
Time: Saturday, 7 September 2019 11:33:23 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!0x06004221!System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at Microsoft.Office.Interop.Outlook!0x06002368!Microsoft.Office.Interop.Outlook.ApplicationClass.GetNamespace(String Type)
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) +0x97
at Huxley.UI.Controllers!0x060011d4!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!0x060020b3!MYOB.Huxley.UI.Controllers.SalesAndPurchases.SendEmailController.SendEmail(String emailAddress, String subject, String message, IEnumerable`1 attachments) +0x6c
at Huxley.UI.Controllers!0x060020b2!MYOB.Huxley.UI.Controllers.SalesAndPurchases.SendEmailController.SendEmail(String emailAddresses, String subject, String message) +0xb
at Huxley.UI.Forms!0x06002516!MYOB.Huxley.UI.Forms.SalesAndPurchases.SendEmail.<OnOkClicked>b__22_0() +0x0
at Huxley.UI.Forms!0x060031b5!MYOB.Huxley.UI.Forms.BaseForms.BaseViewContainer.PerformAction(Action methodToPerform) +0x16
at Huxley.UI.Forms!0x060024f6!MYOB.Huxley.UI.Forms.SalesAndPurchases.SendEmail.OnOkClicked(ButtonClickedArgs args) +0x48
at Huxley.UI.Forms!0x06002e9e!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.CallButtonClicked(Action`1 execute, ButtonClickedArgs args, String buttonText) +0x12
at Huxley.UI.Forms!0x06002e19!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.btnOk_Click(Object sender, EventArgs e) +0x30
at System.Windows.Forms!0x06000e16!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!0x06000efd!System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) +0x184
at System.Windows.Forms!0x06000f0d!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!0x06005714!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) +0x0
at System.Windows.Forms!0x06005717!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=2019.2.22.2609, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:212b94041b1a4cddae382b8457a785b5; A:1
MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers, Version=2019.2.22.2609, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:57bb5c09645147beb154a96202bdf542; A:1
MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2019.2.22.2609, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:bd59ce3997e64164ac8e1bdba5b900e6; 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:a001fd3f157d4ac0b0678b739f130658; A:2
MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:edcb1f6c829546abb72704598ea78110; A:1

----------------------------------------

 

1 REPLY 1
Highlighted
MYOB Moderator Neil_M
11,787 Posts
MYOB Moderator
MYOB Moderator

11,787Posts

1,378Kudos

0Solutions

Re: Myob wont send emails using outlook 2016

Hi @Andrearooney 

 

Interop errors, such as the error log is indicating typically mean that AccountRight is having difficulty connecting through the Interop protocol that allows other programs to connect to Microsoft Office.

 

To recover from this, I would start by uninstalling AccountRight on that computer. Once uninstalled then the next step would be to do a repair install on both Microsoft Office and the .net framework on that computer before reinstalling AccountRight.

 

Its also worth ensuring the version of Outlook is compatible with your version of AccountRight. You can find out which version of Outlook is compatible on our System Requirements page

Regards,
Neil

MYOB Community Support

Online Help| Forum Search| my.MYOB| Download Page

Did my answer help?

Mark it as a SolutionHelpful? Leave a to tell others

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post