Paul_McIntyre
2 years agoCover User
Error when E-Mailing out of MYOB
Hi all,
Recently one of our clients running Windows Server 2008 R2 & AccountRight SE 2022.10.0 has started encountering an error when attempting to E-Mail quotes out of MYOB.
I've copied the error below. The client is using Mozilla Thunderbird as the E-Mailing application, first they run the E-Mail application, then they run MYOB accountright and attempt to E-Mail the quote through MYOB.
This was working up until yesterday, whereby the following error occurs:
AccountRight Application Error Report ===================================== Application Version: 2022.10.24.7505 Application File Version: 2022.10.24.7529 Incident Id: d85c7dab-096f-460e-8c1a-7de4b316cecb Time: Friday, 9 December 2022 10:53:20 AM Code: System.UnauthorizedAccessException Message: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). Stack Trace ---------------------------------------- 1 : System.UnauthorizedAccessException ---------------------------------------- System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). at mscorlib!0x0600550d!System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType) at mscorlib!0x06005bd5!System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType) +0x19 at mscorlib!0x06005bcd!System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj) +0x16 at mscorlib!0x060011d2!System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at mscorlib!0x060011a0!System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +0x6a at mscorlib!0x060011a1!System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +0xab at mscorlib!0x0600074e!System.Activator.CreateInstance(Type type, Boolean nonPublic) +0x3a at mscorlib!0x0600074b!System.Activator.CreateInstance(Type type) +0x0 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) +0x84 at Huxley.UI.Controllers!0x06003035!MYOB.Huxley.UI.Controllers.Helpers.EmailHelper.<>c__DisplayClass45_0.<SendEmail>b__1() +0x68 at Huxley.UI.Controllers!0x060021ce!MYOB.Huxley.UI.Controllers.Helpers.EmailHelper.TrackAndPerformSendEmailLocally(Func`1 sendEmail, EmailResourceType resourceType, Nullable`1 companyDataFileId, Nullable`1 invoiceId) +0x3e at Huxley.UI.Controllers!0x060021c4!MYOB.Huxley.UI.Controllers.Helpers.EmailHelper.SendEmail(String to, String subject, String body, String pdfFileName, EmailResourceType resourceType, FormTemplateDefinition formTemplateDefinition, FormPrintingParams formPrintingParams, IEnumerable`1 attachments, Nullable`1 entityUid, LayoutType layoutType, String documentNumber) +0x1b4 at Huxley.UI.Controllers!0x06001a22!MYOB.Huxley.UI.Controllers.SalesAndPurchases.SendEmailController.SendEmail(String emailAddress, String subject, String message, IEnumerable`1 attachments) +0x88 at Huxley.UI.Controllers!0x06001a21!MYOB.Huxley.UI.Controllers.SalesAndPurchases.SendEmailController.SendEmail(String emailAddresses, String subject, String message) +0xb at Huxley.UI.Forms!0x06001ecd!MYOB.Huxley.UI.Forms.SalesAndPurchases.SendEmail.<OnOkClicked>b__22_0() +0x0 at Huxley.UI.Forms!0x0600272a!MYOB.Huxley.UI.Forms.BaseForms.BaseViewContainer.PerformAction(Action methodToPerform) +0x16 at Huxley.UI.Forms!0x06001ead!MYOB.Huxley.UI.Forms.SalesAndPurchases.SendEmail.OnOkClicked(ButtonClickedArgs args) +0x48 at Huxley.UI.Forms!0x0600240f!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.CallButtonClicked(Action`1 execute, ButtonClickedArgs args, String buttonText) +0x12 at Huxley.UI.Forms!0x06002389!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!0x06005718!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) +0x0 at System.Windows.Forms!0x0600571b!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=2022.10.24.7505, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:b10e83090ce24a37b5ab1ac797a33886; A:1 MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers, Version=2022.10.24.7505, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:2fe381106cfe4b4c80cd20118b528b87; A:1 MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2022.10.24.7505, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:4ed4bfc5cbb643a69cb51d174af55469; A:1 MODULE: mscorlib => mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:f548542e9c4545efb6e399fd2de4ffe3; A:2 MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:37092b305a2047979ce2c868fa62028f; A:1
Any ideas?