The server stopped the session (ID: *) because of a stop session request.

Dynamics2018Dynamics2018 Member Posts: 8
edited 2021-04-27 in NAV Three Tier
Client is facing issue that User's session is stopped automatically by Middle tire. Client version is BC14 Application CU11 Platform CU16.

The scenario is user opens any page via RunModal and then remain inactive for certain time. Below details are logged in event viewer as Information. There is no issue if user remain active and opens the same page via RunModal.

Any suggestion to resolve the issue is appreciated.

Below is event viewer log:

Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSessionTerminatedException
MaxVerbosity: Normal
Message: The server stopped the session (ID: 180815) 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.Types.NavThread.RunExternalAction[T](Func`1 action)
at Microsoft.Dynamics.Nav.Service.ServiceCall.GetClientReturnValue(Action invokeCallback)
at Microsoft.Dynamics.Nav.Service.NSClientCallback.<>c__DisplayClass23_0.<FormRunModal>b__0()
at Microsoft.Dynamics.Nav.Runtime.ApplicationObjectRootScope.AddApplicationObjectRootScope[T](NavApplicationObjectBase applicationObject, Func`1 action)
at Microsoft.Dynamics.Nav.Runtime.NavForm.RunModal(NavRecord record, Int32 fieldNo)
at Microsoft.Dynamics.Nav.Runtime.NavFormHandle.RunModal(NavRecord record, Int32 fieldNo)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit5752.GetOutboundDocs_Scope.OnRun()
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit5752.GetOutboundDocs(INavRecordHandle whseShptHeader)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit5752.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.BusinessApplication.Page7335.a60Action34a62_a45_OnAction_Scope.OnRun()
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Page7335.a60Action34a62_a45_OnAction()
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088
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.Types.NavThread.RunExternalAction[T](Func`1 action)
at Microsoft.Dynamics.Nav.Service.ServiceCall.GetClientReturnValue(Action invokeCallback)
at Microsoft.Dynamics.Nav.Service.NSClientCallback.<>c__DisplayClass23_0.<FormRunModal>b__0()
at Microsoft.Dynamics.Nav.Runtime.ApplicationObjectRootScope.AddApplicationObjectRootScope[T](NavApplicationObjectBase applicationObject, Func`1 action)
at Microsoft.Dynamics.Nav.Runtime.NavForm.RunModal(NavRecord record, Int32 fieldNo)
at Microsoft.Dynamics.Nav.Runtime.NavFormHandle.RunModal(NavRecord record, Int32 fieldNo)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit5752.GetOutboundDocs_Scope.OnRun()
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit5752.GetOutboundDocs(INavRecordHandle whseShptHeader)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit5752.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.BusinessApplication.Page7335.a60Action34a62_a45_OnAction_Scope.OnRun()
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Page7335.a60Action34a62_a45_OnAction()
Sign In or Register to comment.