Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Print Spooler service crashes when printing reports through NAV 2013 R2 - Windows Server 2012 R2

Posted on by Microsoft Employee

Hi everyone,

We have in the past experienced issues where RDSH users printing through NAV would experience application freezes at the point where the printer selection screen should appear. Restarting the print spooler service has always fixed the problem temporarily. However, recently these issues have ramped up to the point where I have had to setup tasks to reset the spooler every 10 minutes otherwise the application freezes constantly.

This issue is localised to these RDSH servers, not affecting other virtual desktops that certain individuals use. I have logged into the NAV servers to check the event logs, and there are two different types of events that appear to be logged when the freeze occurs. These are Event ID 218 - Task Category 13 [docs.microsoft.com/.../microsoft-dynamics-nav-server-events].

The more frequent version of the error:

===================================

Log Name: Application
Source: MicrosoftDynamicsNavServer$NAV2013R2_Win_Live
Date: 26/02/2018 8:15:54 AM
Event ID: 218
Task Category: (13)
Level: Warning
Keywords: Classic
User: N/A
Computer: nav1.###.com.au
Description:
Server instance: NAV2013R2_Win_Live
User: domain\user
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSessionTerminatedException
Message: The server stopped the session (ID: 293) because of a stop session request.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(ITreeObject obj, String methodName, Object[] args)
at Microsoft.Dynamics.Nav.Service.NSField.ActionField(NavSession con)
at Microsoft.Dynamics.Nav.Service.NSField.Action(NavSession session)
at SyncInvokeActionField(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.ErrorMappingCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, Object[] inputs, Object[]& outputs)
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088
----------------------------------
Type: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
StackTrace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(ITreeObject obj, String methodName, Object[] args)
Source: mscorlib
HResult: -2146232828
----------------------------------
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSessionTerminatedException
Message: The server stopped the session (ID: 293) because of a stop session request.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.SessionAccessLock.ThrowSessionTerminatedException()
at Microsoft.Dynamics.Nav.Runtime.NavSession.ThrowSessionTerminatedExceptionIfStoppingOrDisposed()
at Microsoft.Dynamics.Nav.Service.ResultWaiter`1.ThrowDisposedException()
at Microsoft.Dynamics.Nav.Service.ResultWaiter`1.WaitForValue()
at Microsoft.Dynamics.Nav.Service.ClientContractWrapper.InvokeInnerContract(Action`1 action)
at Microsoft.Dynamics.Nav.Service.ServiceCall.GetClientReturnValue(Action invokeCallback)
at Microsoft.Dynamics.Nav.Service.NSClientCallback.DataSetPageReady(DataSetRequest request)
at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReportInternal(NavRecord record, Boolean displayResult)
at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean runReportModal, NavRecord record, IList`1 reportTextualFilters)
at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Int32 reportId, Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean isRunningAsModal, NavRecord record, IList`1 textualFilters)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit229.PrintSalesOrder_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit229.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.BusinessApplication.Page42.a60Action224a62_a45_OnAction_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Page42.a60Action224a62_a45_OnAction()
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088

Event Xml:
<Event xmlns="schemas.microsoft.com/.../event">
<System>
<Provider Name="MicrosoftDynamicsNavServer$NAV2013R2_Win_Live" />
<EventID Qualifiers="0">218</EventID>
<Level>3</Level>
<Task>13</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-02-25T21:15:54.000000000Z" />
<EventRecordID>396615</EventRecordID>
<Channel>Application</Channel>
<Computer>nav1.###.com.au</Computer>
<Security />
</System>
<EventData>
<Data>Server instance: NAV2013R2_Win_Live
User: domain\user
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSessionTerminatedException
Message: The server stopped the session (ID: 293) because of a stop session request.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(ITreeObject obj, String methodName, Object[] args)
at Microsoft.Dynamics.Nav.Service.NSField.ActionField(NavSession con)
at Microsoft.Dynamics.Nav.Service.NSField.Action(NavSession session)
at SyncInvokeActionField(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.ErrorMappingCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, Object[] inputs, Object[]&amp; outputs)
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088
----------------------------------
Type: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
StackTrace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(ITreeObject obj, String methodName, Object[] args)
Source: mscorlib
HResult: -2146232828
----------------------------------
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSessionTerminatedException
Message: The server stopped the session (ID: 293) because of a stop session request.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.SessionAccessLock.ThrowSessionTerminatedException()
at Microsoft.Dynamics.Nav.Runtime.NavSession.ThrowSessionTerminatedExceptionIfStoppingOrDisposed()
at Microsoft.Dynamics.Nav.Service.ResultWaiter`1.ThrowDisposedException()
at Microsoft.Dynamics.Nav.Service.ResultWaiter`1.WaitForValue()
at Microsoft.Dynamics.Nav.Service.ClientContractWrapper.InvokeInnerContract(Action`1 action)
at Microsoft.Dynamics.Nav.Service.ServiceCall.GetClientReturnValue(Action invokeCallback)
at Microsoft.Dynamics.Nav.Service.NSClientCallback.DataSetPageReady(DataSetRequest request)
at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReportInternal(NavRecord record, Boolean displayResult)
at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean runReportModal, NavRecord record, IList`1 reportTextualFilters)
at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Int32 reportId, Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean isRunningAsModal, NavRecord record, IList`1 textualFilters)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit229.PrintSalesOrder_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit229.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.BusinessApplication.Page42.a60Action224a62_a45_OnAction_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Page42.a60Action224a62_a45_OnAction()
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088
</Data>
</EventData>
</Event>

===================================

The less frequent version of the error:

===================================

Log Name: Application
Source: MicrosoftDynamicsNavServer$NAV2013R2_Win_Live
Date: 21/02/2018 9:09:32 AM
Event ID: 218
Task Category: (13)
Level: Warning
Keywords: Classic
User: N/A
Computer: nav1.###.com.au
Description:
Server instance: NAV2013R2_Win_Live
Tenant ID: default
Session type: RoleTailoredClient
Session ID: 8
User: domain\user
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLAutomationCreateException
SuppressMessage: False
SuppressExceptionCreatedEvent: False
FatalityScope: None
Message: The Automation Server XML DOM Document 6.0 is not allowed to run on this client.
StackTrace:
at Microsoft.Dynamics.Nav.Service.ServiceCall.GetClientReturnValue(Action invokeCallback)
at Microsoft.Dynamics.Nav.Service.NSClientCallback.CreateAutomationObject(Guid classId, String licenseKey, Boolean newServer)
at Microsoft.Dynamics.Nav.Runtime.NavAutomation.Create(DataError errorLevel, Boolean newServer, Boolean clientSide)
Source: Microsoft.Dynamics.Nav.Service
HResult: -2146233088
----------------------------------
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLAutomationCreateException
SuppressMessage: False
SuppressExceptionCreatedEvent: False
FatalityScope: None
Message: The Automation Server XML DOM Document 6.0 is not allowed to run on this client.
StackTrace:
at Microsoft.Dynamics.Nav.Client.AutomationHandler.CreateAutomationObjectCore(Guid classId, String licenseKey, Boolean newServer)
at Microsoft.Dynamics.Nav.Client.AutomationHandlerBase.CreateAutomationObject(Guid classId, String licenseKey, Boolean newServer)
at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass33.<CreateAutomationObject>b__32()
at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1.<RunClientRequest>b__0()
at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.<>c__DisplayClass8.<WaitForServerResponse>b__6()
at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.DoClientRequestAndCatch(Action clientRequest, Action`1 sendToServerIfNotFaulted)
Source: Microsoft.Dynamics.Nav.Client.WinForms
HResult: -2146233088

Event Xml:
<Event xmlns="schemas.microsoft.com/.../event">
<System>
<Provider Name="MicrosoftDynamicsNavServer$NAV2013R2_Win_Live" />
<EventID Qualifiers="0">218</EventID>
<Level>3</Level>
<Task>13</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-02-20T22:09:32.000000000Z" />
<EventRecordID>396520</EventRecordID>
<Channel>Application</Channel>
<Computer>nav1.###.com.au</Computer>
<Security />
</System>
<EventData>
<Data>Server instance: NAV2013R2_Win_Live
Tenant ID: default
Session type: RoleTailoredClient
Session ID: 8
User: domain\user
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLAutomationCreateException
SuppressMessage: False
SuppressExceptionCreatedEvent: False
FatalityScope: None
Message: The Automation Server XML DOM Document 6.0 is not allowed to run on this client.
StackTrace:
at Microsoft.Dynamics.Nav.Service.ServiceCall.GetClientReturnValue(Action invokeCallback)
at Microsoft.Dynamics.Nav.Service.NSClientCallback.CreateAutomationObject(Guid classId, String licenseKey, Boolean newServer)
at Microsoft.Dynamics.Nav.Runtime.NavAutomation.Create(DataError errorLevel, Boolean newServer, Boolean clientSide)
Source: Microsoft.Dynamics.Nav.Service
HResult: -2146233088
----------------------------------
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLAutomationCreateException
SuppressMessage: False
SuppressExceptionCreatedEvent: False
FatalityScope: None
Message: The Automation Server XML DOM Document 6.0 is not allowed to run on this client.
StackTrace:
at Microsoft.Dynamics.Nav.Client.AutomationHandler.CreateAutomationObjectCore(Guid classId, String licenseKey, Boolean newServer)
at Microsoft.Dynamics.Nav.Client.AutomationHandlerBase.CreateAutomationObject(Guid classId, String licenseKey, Boolean newServer)
at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.&lt;&gt;c__DisplayClass33.&lt;CreateAutomationObject&gt;b__32()
at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.&lt;&gt;c__DisplayClass1.&lt;RunClientRequest&gt;b__0()
at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.&lt;&gt;c__DisplayClass8.&lt;WaitForServerResponse&gt;b__6()
at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.DoClientRequestAndCatch(Action clientRequest, Action`1 sendToServerIfNotFaulted)
Source: Microsoft.Dynamics.Nav.Client.WinForms
HResult: -2146233088
</Data>
</EventData>
</Event>

===================================

I'm not too sure on how to act regarding the XML 6.0 error being reported above, however am looking forward to any feedback from anyone else that may have insight or experience with similar errors.

If there are any more details you need, or that I may have forgotten, please feel free to let me know and I'll get those to you. Thank you!

Christian

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Print Spooler service crashes when printing reports through NAV 2013 R2 - Windows Server 2012 R2

    This issue is now solved and was actually unrelated to the NAV servers. Turns out there was an old printer being shared out from a now inaccessible IP, so when NAV attempted to communicate with the list of available printers it would freeze trying to connect to this now unreachable printer.

    After deleting the printer via regedit on all servers, the issue is now fixed.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans