MYOBCommunity
Partner Zone
|
|
Partner Zone

MYOB 2018.4.1 Remote Desktop Services Printing Issues

Experienced Cover User zswiss
10 Posts
Experienced Cover User
Australia
zswiss
Experienced Cover User

10Posts

2Kudos

1Solutions

Solved: Go to Solution

MYOB 2018.4.1 Remote Desktop Services Printing Issues

I am experiencing the same issue as the user that posted this thread:

 

https://community.myob.com/t5/AccountRight-Installing-and/Accountright-2015-2-issues-printing/td-p/3...

 

We have used the provided MSI installer and packages outlined in the "AccountRight MSI Installation Instructions". However, the printing permission issue remains, that only the first user to run the application is able send jobs to the printer. No other application installed on the RDS exhibits this behaviour. If anyone has any information on why this is happening, please reply to this thread.

 

Thanks

 

 

3 REPLIES
Experienced Cover User zswiss
10 Posts
Experienced Cover User
Australia
zswiss
Experienced Cover User

10Posts

2Kudos

1Solutions

Re: MYOB 2018.4.1 Remote Desktop Services Printing Issues

Below is the error log for the exception thrown:

 

 

AccountRight Application Error Report
=====================================
Application Version: 2018.4.21.6219
Application File Version: 2018.4.21.6556
Time: Monday, 4 February 2019 1:11:17 PM

Code: 
System.Printing.PrintQueueException


Message: 
PrintTicket provider failed to bind to printer. Win32 error: Access is denied.



Stack Trace
----------------------------------------
1 : System.Printing.PrintQueueException
----------------------------------------
System.Printing.PrintQueueException: PrintTicket provider failed to bind to printer. Win32 error: Access is denied.

   at ReachFramework!0x06000eb9!MS.Internal.Printing.Configuration.PTProvider..ctor(String deviceName, Int32 maxVersion, Int32 clientVersion) +0x39
   at ReachFramework!0x06000ece!MS.Internal.Printing.Configuration.PTProviderBase.Create(String deviceName, Int32 maxVersion, Int32 clientVersion) +0x9
   at ReachFramework!0x060002bd!System.Printing.Interop.PrintTicketConverter..ctor(String deviceName, Int32 clientPrintSchemaVersion) +0x1c
   at PresentationFramework!0x06008c3e!MS.Internal.Printing.Win32PrintDialog.PrintDlgExMarshaler.AcquirePrintTicket(IntPtr devModeHandle, String printQueueName) +0x66
   at PresentationFramework!0x06008c39!MS.Internal.Printing.Win32PrintDialog.PrintDlgExMarshaler.SyncFromStruct() +0x52
   at PresentationFramework!0x06006b4a!MS.Internal.Printing.Win32PrintDialog.ShowDialog() +0x115
   at PresentationFramework!0x0600542f!System.Windows.Controls.PrintDialog.ShowDialog() +0xcb
   at System.Printing!0x0600047e!System.Printing.PrintQueue.GatherDataFromPrintDialog(PrintDialog printDialog, XpsDocumentWriter& writer, PrintTicket& partialTrustPrintTicket, PrintQueue& partialTrustPrintQueue, Double& width, Double& height, String jobDescription) +0x2
   at System.Printing!0x06000458!System.Printing.PrintQueue.CreateXpsDocumentWriter(String jobDescription, PrintDocumentImageableArea& documentImageableArea) +0x7
   at PresentationFramework!0x06005d67!System.Windows.Controls.Primitives.DocumentViewerBase.OnPrintCommand() +0x16
   at Huxley.RF.Framework!0x06000368!MYOB.Huxley.RF.Framework.Windows.FormPreviewRibbonWindow.PrintCommand_Executed(RFCommandParam param) +0x0
   at Huxley.RF.Core.Presentation!0x060004f5!MYOB.Huxley.RF.Core.Presentation.Design.Commands.RFCommand.Execute(Object parameter) +0x12
   at PresentationFramework!0x060077f9!MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated) +0x4a
   at PresentationFramework!0x06005bab!System.Windows.Controls.Primitives.ButtonBase.OnClick() +0x13
   at PresentationFramework!0x06004248!System.Windows.Controls.Button.OnClick() +0x1a
   at RibbonControlsLibrary!0x060005fc!Microsoft.Windows.Controls.Ribbon.RibbonButton.OnClick() +0x1
   at PresentationFramework!0x06005bc9!System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) +0x46
   at PresentationCore!0x06000655!System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e) +0x1d
   at PresentationCore!0x06001187!System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) +0x7
   at PresentationCore!0x06000b5c!System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) +0x7
   at PresentationCore!0x06000b69!System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) +0x30
   at PresentationCore!0x06000584!System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) +0xe6
   at PresentationCore!0x060007f0!System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) +0x65
   at PresentationCore!0x06000651!System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) +0x3a
   at PresentationCore!0x06001187!System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) +0x7
   at PresentationCore!0x06000b5c!System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) +0x7
   at PresentationCore!0x06000b69!System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) +0x30
   at PresentationCore!0x06000584!System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) +0xe6
   at PresentationCore!0x060007f1!System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) +0x57
   at PresentationCore!0x0600063f!System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) +0x14
   at PresentationCore!0x0600063e!System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) +0x11
   at PresentationCore!0x06000f67!System.Windows.Input.InputManager.ProcessStagingArea() +0x1ef
   at PresentationCore!0x06000f5e!System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) +0x24
   at PresentationCore!0x06000fd3!System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) +0x35
   at PresentationCore!0x060019d9!System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) +0x210
   at PresentationCore!0x060019d3!System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) +0x0
   at PresentationCore!0x06001a1c!System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) +0x4a
   at WindowsBase!0x06000193!MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) +0x30
   at WindowsBase!0x06000183!MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) +0x36
   at WindowsBase!0x06000f3b!System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) +0x77
   at WindowsBase!0x06000f3a!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) +0x36
   at WindowsBase!0x06000f86!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) +0xbb
   at WindowsBase!0x06000181!MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) +0x11d
   at System.Windows.Forms!0x06004642!System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms!0x06005349!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) +0x177
   at System.Windows.Forms!0x06005377!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) +0x1e9
   at System.Windows.Forms!0x06005376!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) +0x14
   at System.Windows.Forms!0x06000565!System.Windows.Forms.Application.Run(Form mainForm) +0xc
   at Huxley.Application!0x060000f1!MYOB.Huxley.Application.Program.Main(String[] args) +0x1f8
   at Huxley.Application!0x060000db!MYOB.Huxley.Application.Launcher.Main(String[] args) +0x11
==========
MODULE: Huxley.Application => Huxley.Application, Version=2018.4.21.6219, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:6132f92b85e3442ca749f73a79fc3403; A:1
MODULE: Huxley.RF.Core.Presentation => Huxley.RF.Core.Presentation, Version=2018.4.21.6219, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:e58041078e2d4e12a5cf0273a484c7bc; A:2
MODULE: Huxley.RF.Framework => Huxley.RF.Framework, Version=2018.4.21.6219, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:5f7642048d1943b4b0d76ef462b3d413; A:2
MODULE: PresentationCore => PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; G:5d7f75d658694e5889a2d92e41009d15; A:2
MODULE: PresentationFramework => PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; G:258cc837644440d08fdc8288d4e670f4; A:1
MODULE: ReachFramework => ReachFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; G:eaa8c5d0976748eca4a416a2544b084e; A:1
MODULE: RibbonControlsLibrary => RibbonControlsLibrary, Version=3.5.40729.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35; G:2a9ef75ef6e54c57bdaa66f1ca277e7d; A:4
MODULE: System.Printing => System.Printing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; G:5b69f5d4d2604e7291844e2d13faf5ca; A:6
MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:199b31db99b1448abbbf936be78a06de; A:1
MODULE: WindowsBase => WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; G:0125ca010d4e4bb1abaacd911261d180; A:1

----------------------------------------
Valued User sholt73
455 Posts
Valued User
Australia
sholt73
Valued User

455Posts

268Kudos

16Solutions

Re: MYOB 2018.4.1 Remote Desktop Services Printing Issues

I did have an error that looked like yours in an RDS environment, though this was thrown sproadically and only happened at certain times. other times it printed just fine.

 

found that it was due to an automated backup service that was running at the same time and it was stopping myob from locking down certain files when initiating the print process. we fixed it by making sure all users had full write permissions to system32/spools/printers and we were golden. hope this helps in your situation also.

Experienced Cover User zswiss
10 Posts
Experienced Cover User
Australia
zswiss
Experienced Cover User

10Posts

2Kudos

1Solutions

Accepted Solution Solved Solution

Re: MYOB 2018.4.1 Remote Desktop Services Printing Issues

Thanks for the reply, but this a consistent and MYOB exclusive problem for us. Turns out that this issue is triggered when trying to print from a 32bit process in non-standard user session (like e.g. a service). 

 

The workaround goes as follows:

1.Open Regedit and go to HKEY_CLASSES_ROOT\CLSID{BA7C0D29-81CA-4901-B450-634E20BB8C34}

2.Check the value of the "AppID" Registry Entry. In our case this was {AA0B85DA-FDDF-4272-8D1D-FF9B966D75B0}

3.Now go to HKEY_CLASSES_ROOT\AppID{AA0B85DA-FDDF-4272-8D1D-FF9B966D75B0} (or the respective value you found on your system)

4.Under this registry key, delete the entries with the name "AccessPermission", "LaunchPermission" and "RunAs"

link to the full article can be found here: Printing Issues - Service

 

This solved the problem.

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