Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Nav 2016 crashes

Posted on by Microsoft Employee

Hi,

We experience that our Nav 2016 (NAV 9.043897.0) crashes at what appears to be random moments. Below is an error report.

Does anyone know how to solve the issue?

Type: Microsoft.Dynamics.Nav.Client.NavClientClosingException
Fatal: False
ShowError: True
Message: The session could not be retrieved from the server. The program closes.
StackTrace:
ved Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(Func`1 execute)
ved Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(Exception exception, Boolean designMode)
ved Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.WinFormsDispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs eventArgs)
ved Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.HandleDispatcherException(Object sender, Exception e)
ved System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
ved System.Windows.Forms.Control.WndProcException(Exception e)
ved System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
ved System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
ved System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
ved System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
ved System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
ved Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunMessagePump()
ved Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunCore()
ved Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute)
Source: Microsoft.Dynamics.Nav.Client.WinClient
HResult: -2146233088
----------------------------------
Type: Microsoft.Dynamics.Nav.Types.NavConnectionLostException
Message: The session could not be retrieved from the server. The program closes.
StackTrace:
ved Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass6.<DoRethrowWithCatchException>b__4()
ved Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute)
Source: Microsoft.Dynamics.Nav.Client.WinClient
HResult: -2146233088
----------------------------------
Type: Microsoft.Dynamics.Nav.Types.NavConnectionLostException
Message: The session could not be retrieved from the server. The program closes.
StackTrace:
ved Microsoft.Dynamics.Nav.Client.ConnectionStateManager.ServerReconnectLoop(DateTime gracePeriodEnd)
ved Microsoft.Dynamics.Nav.Client.ConnectionStateManager.Reconnect(Boolean timeout)
ved Microsoft.Dynamics.Nav.Client.ConnectionStateManager.HandleCommunicationFailure[T](BeginCallServerMethod beginCallServerMethod, EndCallServerMethod`1 endCallServerMethod, ServerCallOptions options, Exception e, Int32 messageNumber, String sessionId)
ved Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[T](BeginCallServerMethod beginCallServerMethod, EndCallServerMethod`1 endCallServerMethod, ServerCallOptions options)
ved Microsoft.Dynamics.Nav.Client.ServiceConnection.CallServer[T](BeginCallServerMethod beginCallServerMethod, EndCallServerMethod`1 endCallServerMethod)
ved Microsoft.Dynamics.Nav.Client.FormBuilder.CommandBarBuilder.FindClonedAndOriginatingActions(CommandBarDefinition definition, UIBuilderContext context, LogicalForm ownerForm)
ved Microsoft.Dynamics.Nav.Client.FormBuilder.CommandBarBuilder.DoBuild(CommandBarDefinition definition, LogicalControl parent, UIBuilderContext context)
ved Microsoft.Dynamics.Nav.Client.FormBuilder.HomepageBuilder.DoBuild(MasterPage definition, BindingManager bindingManager, UIBuilderContext context)
ved Microsoft.Dynamics.Nav.Client.FormBuilder.PageBuilder.Build(MasterPage definition, BindingManager bindingManager, UIBuilderContext context)
ved Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.CreateLogicalForm(MasterPage metadata, FormState formState)
ved Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.CreateLogicalForm(Int32 formId, FormState formState, Int32 retryCounter)
ved Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.CreateLogicalForm(String name)
ved Microsoft.Dynamics.Framework.UI.UISession.CreateLogicalForm(String name, Boolean reuseActiveForm)
ved Microsoft.Dynamics.Framework.UI.UX2006.NavigationService.OpenEmbeddedForm(String formName)
ved Microsoft.Dynamics.Framework.UI.UX2006.NavigationService.OpenEmbeddedForm(String formName, NavigationNode node)
ved Microsoft.Dynamics.Framework.UI.UX2006.NavigateToFormAction.InvokeCore(LogicalControl logicalControl, Object state, UISession uiSession)
ved Microsoft.Dynamics.Nav.Client.Actions.NavNavigateToFormAction.InvokeCore(LogicalControl logicalControl, Object state, UISession uiSession)
ved Microsoft.Dynamics.Framework.UI.LogicalAction.InvokeCoreWithErrorHandling(LogicalControl logicalControl, Object state, UISession uiSession)
ved Microsoft.Dynamics.Framework.UI.LogicalAction.DoInvoke(LogicalControl logicalControl, UISession uiSession)
ved Microsoft.Dynamics.Framework.UI.UX2006.NavigationService.NavigateToNode(LogicalControl logicalControl, NavigationNode node)
ved Microsoft.Dynamics.Framework.UI.UX2006.NavigationPaneLogicalControl.OnNavigate(NavigationEventArgs e)
ved Microsoft.Dynamics.Framework.UI.NavigationControlBase.Navigate(Object node)
ved Microsoft.Dynamics.Framework.UI.WinForms.NavigationPaneControlAdapter.navigationPaneBarNavigate(Object sender, NavigationPaneNavigateEventArgs e)
ved Microsoft.Dynamics.Framework.UI.WinForms.Controls.NavigationPaneTreeTab.OnNavigate(NavigationPaneNavigateEventArgs e)
ved Microsoft.Dynamics.Framework.UI.WinForms.Controls.NavigationPane.set_SetTabIndex(Int32 value)
ved Microsoft.Dynamics.Framework.UI.WinForms.Controls.NavigationPane.ClickTab(Point point)
ved Microsoft.Dynamics.Framework.UI.WinForms.Controls.NavigationPane.set_MouseDownTabs(Boolean value)
ved Microsoft.Dynamics.Framework.UI.WinForms.Controls.NavigationPane.OnMouseUp(MouseEventArgs e)
ved System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
ved System.Windows.Forms.Control.WndProc(Message& m)
ved System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source: Microsoft.Dynamics.Nav.Client.ServiceConnection
HResult: -2146233088

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Nav 2016 crashes

    Hi Chris,

    Thanks for the suggestion. We will try it out and see how it goes.

    Kind regads,

    Jan

  • Suggested answer
    Chris_A Profile Picture
    Chris_A 70 on at
    RE: Nav 2016 crashes

    Hi JIShark,

    Hi, I have been having a similar issue with running NAV2015 on MS Surface using a 2nd screen via a dock. I had seen a few reports of similar issues from laptop users with multiple screens. Anyway the fix seemed to be to set the DPI setttings to "System".

    If you scroll down to the bottom this thread has the details community.dynamics.com/.../297401

    Hope that helps.

    Chris

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans