Hi guys,
We've been having a lot of issues with NAV RTC crashing. The error message is not extremely informative, it just says:
Microsoft.Dynamics.Nav.Client has stopped working.
A problem cause the program to stop working correctly.
Windows will close the program and notify you if a solution is available.
I checked in event viewer and the error seems to be related to .NET framework misbehavior. Please check the event information below. In the past I've ran into this problem and managed to fix it by installing an updated .NET framework version or repairing the existing one but now with .NET Framework being part of Windows 10 OS all my attempts did not fix the issue.
We are running NAV 2013 R2 on Windows Server 2012 fully updated and RTC is running on Windows 10 fully updated (Build 1703 Creators update).
Has anyone every run into similar issue? If so, how did you guys solve this?
Application Error
Faulting application name: Microsoft.Dynamics.Nav.Client.exe, version: 7.1.36897.0, time stamp: 0x53879f99
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0x80131623
Fault offset: 0x00b770d1
Faulting process id: 0x1dc0
Faulting application start time: 0x01d2deccd890dad1
Faulting application path: C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe
Faulting module path: unknown
Report Id: f32518a0-d086-4f7e-8fd1-70da63bf22a8
Faulting package full name:
Faulting package-relative application ID:
.NET Runtime error
Application: Microsoft.Dynamics.Nav.Client.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: Value does not fall within the expected range.
Stack:
at System.Environment.FailFast(System.String)
at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.HandleGeneralException(System.Exception)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(System.Exception, Boolean)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoHandleThreadException(System.Exception, Boolean)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.WinFormsDispatcherUnhandledException(System.Object, Microsoft.Dynamics.Framework.UI.DispatcherUnhandledExceptionEventArgs)
at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.HandleDispatcherException(System.Object, System.Exception)
at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.OnThreadException(System.Object, System.Threading.ThreadExceptionEventArgs)
at System.Windows.Forms.Application+ThreadContext.OnThreadException(System.Exception)
at System.Windows.Forms.Control.WndProcException(System.Exception)
at System.Windows.Forms.Control+ControlNativeWindow.OnThreadException(System.Exception)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form)
at System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
at Microsoft.Dynamics.Framework.UI.WinForms.Controls.BusinessForm.ShowDialog(System.Windows.Forms.Form, System.Windows.Forms.IWin32Window)
at Microsoft.Dynamics.Framework.UI.WinForms.FormPanel.DoModal(Microsoft.Dynamics.Framework.UI.LogicalForm)
at Microsoft.Dynamics.Framework.UI.Windows.LogicalFormAdapterBase.DoModal(Microsoft.Dynamics.Framework.UI.LogicalForm)
at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.OnFormToShow(Microsoft.Dynamics.Framework.UI.LogicalForm, Microsoft.Dynamics.Framework.UI.LogicalControl)
at Microsoft.Dynamics.Framework.UI.WinForms.ClientSession.OnFormToShow(Microsoft.Dynamics.Framework.UI.LogicalForm, Microsoft.Dynamics.Framework.UI.LogicalControl)
at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.OnDialogToShow(Microsoft.Dynamics.Framework.UI.DialogSessionEventArgs)
at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.DialogToShow(System.Object, Microsoft.Dynamics.Framework.UI.DialogSessionEventArgs)
at Microsoft.Dynamics.Framework.UI.UISession.OnDialogToShow(Microsoft.Dynamics.Framework.UI.DialogSessionEventArgs)
at Microsoft.Dynamics.Framework.UI.UISession.ShowDialog(Microsoft.Dynamics.Framework.UI.LogicalForm, Microsoft.Dynamics.Framework.UI.LogicalForm)
at Microsoft.Dynamics.Framework.UI.LogicalForm+<>c__DisplayClass9.<ShowDialogAndEnsureModality>b__8()
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
at System.Delegate.DynamicInvokeImpl(System.Object[])
at Microsoft.Dynamics.Framework.UI.WinForms.ExceptionWrapper.RunTryCatch(System.Object, System.Delegate, System.Object[])
at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher+<>c__DisplayClassa.<Invoke>b__9()
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
at System.Delegate.DynamicInvokeImpl(System.Object[])
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(System.Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
at System.Windows.Forms.Control.Invoke(System.Delegate, System.Object[])
at System.Windows.Forms.Control.Invoke(System.Delegate)
at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.Invoke(System.Action)
at Microsoft.Dynamics.Framework.UI.LogicalDispatcher.ExecuteInFrameInternal(Microsoft.Dynamics.Framework.UI.LogicalDispatcherFrame, System.Action)
at Microsoft.Dynamics.Framework.UI.LogicalDispatcher.ExecuteInFrame(Microsoft.Dynamics.Framework.UI.LogicalDispatcherFrame, System.Action)
at Microsoft.Dynamics.Framework.UI.LogicalForm.ShowDialogAndEnsureModality(Microsoft.Dynamics.Framework.UI.LogicalForm)
at Microsoft.Dynamics.Framework.UI.LogicalForm.ShowDialog(Microsoft.Dynamics.Framework.UI.LogicalForm)
at Microsoft.Dynamics.Nav.Client.PageRunCallbackHandler.RunModalPage(Microsoft.Dynamics.Nav.Types.FormRunModalRequest, Microsoft.Dynamics.Framework.UI.LogicalForm)
at Microsoft.Dynamics.Nav.Client.ServiceClientCallback+<>c__DisplayClass1f.<FormRunModal>b__1e()
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(System.Action, System.Action`1<System.Exception>)
at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(System.IAsyncResult, ThreadCallbackContext)
at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.CallServer[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Dynamics.Nav.Client.BeginCallServerMethod, Microsoft.Dynamics.Nav.Client.EndCallServerMethod`1<System.__Canon>, Microsoft.Dynamics.Nav.Client.ServerCallOptions)
at Microsoft.Dynamics.Nav.Client.ServerInvocationHandler.CallServer[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Dynamics.Nav.Client.BeginCallServerMethod, Microsoft.Dynamics.Nav.Client.EndCallServerMethod`1<System.__Canon>, Microsoft.Dynamics.Nav.Client.ServerCallOptions)
at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Dynamics.Nav.Client.BeginCallServerMethod, Microsoft.Dynamics.Nav.Client.EndCallServerMethod`1<System.__Canon>, Microsoft.Dynamics.Nav.Client.ServerCallOptions)
at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Dynamics.Nav.Client.BeginCallServerMethod, Microsoft.Dynamics.Nav.Client.EndCallServerMethod`1<System.__Canon>)
at Microsoft.Dynamics.Nav.Client.ServerInvocationHandler.CallServer[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Dynamics.Nav.Client.BeginCallServerMethod, Microsoft.Dynamics.Nav.Client.EndCallServerMethod`1<System.__Canon>)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.CallServer[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Dynamics.Nav.Client.BeginCallServerMethod, Microsoft.Dynamics.Nav.Client.EndCallServerMethod`1<System.__Canon>)
at Microsoft.Dynamics.Nav.Client.ServiceConnectionBase.ActionField(Microsoft.Dynamics.Nav.Types.NavRecordState ByRef, Microsoft.Dynamics.Nav.Types.Data.NavDataSet, Int32)
at Microsoft.Dynamics.Nav.Client.ServiceConnection.Microsoft.Dynamics.Nav.Client.IService.ActionField(Microsoft.Dynamics.Nav.Types.NavRecordState ByRef, Microsoft.Dynamics.Nav.Types.Data.NavDataSet, Int32)
at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.ActionMethod(Int32)
at Microsoft.Dynamics.Nav.Client.Actions.InvokePageTriggerAction.InvokeTrigger(Microsoft.Dynamics.Framework.UI.LogicalControl, Microsoft.Dynamics.Framework.UI.UISession)
at Microsoft.Dynamics.Nav.Client.Actions.InvokePageTriggerAction.InvokeCore(Microsoft.Dynamics.Framework.UI.LogicalControl, System.Object, Microsoft.Dynamics.Framework.UI.UISession)
at Microsoft.Dynamics.Framework.UI.LogicalAction.InvokeCoreWithErrorHandling(Microsoft.Dynamics.Framework.UI.LogicalControl, System.Object, Microsoft.Dynamics.Framework.UI.UISession)
at Microsoft.Dynamics.Framework.UI.LogicalAction.DoInvoke(Microsoft.Dynamics.Framework.UI.LogicalControl, Microsoft.Dynamics.Framework.UI.UISession)
at Microsoft.Dynamics.Framework.UI.ActionControl.Invoke()
at Microsoft.Dynamics.Framework.UI.Windows.ActionsHelper+<>c__DisplayClassa.<ModalitySafeInvoke>b__8()
at Microsoft.Dynamics.Framework.UI.Windows.ActionsHelper.ModalitySafe(System.Action)
at Microsoft.Dynamics.Framework.UI.Windows.ActionsHelper.ModalitySafeInvoke(Microsoft.Dynamics.Framework.UI.ActionControl)
at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.DefaultInvokeAction(Microsoft.Dynamics.Framework.UI.Windows.LogicalControlAdapter, Microsoft.Dynamics.Framework.UI.ActionControl)
at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.DefaultInvokeAction(Microsoft.Dynamics.Framework.UI.Windows.LogicalControlAdapter)
at Microsoft.Dynamics.Framework.UI.UX2006.WinForms.LogicalCommand.Execute(System.Object)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Ribbon.RibbonButton.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
at System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunMessagePump()
at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunCore()
at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.Run()
at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(System.Func`1<Int32>)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(System.Func`1<Int32>)
at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunCore()
at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.Run(Boolean)
at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunAndDispose()
at Microsoft.Dynamics.Nav.Client.Program.ExecuteNormally(System.Func`1<Int32>)
at Microsoft.Dynamics.Nav.Client.Program.Main(System.String[])
MicrosoftDynamicsNavClient error
Type: System.ArgumentException
Message: Value does not fall within the expected range.
StackTrace:
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass6.<DoRethrowWithCatchException>b__4()
at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(Func`1 execute)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(Exception exception, Boolean designMode)
Source: Microsoft.Dynamics.Nav.Client.WinClient
HResult: -2147024809
----------------------------------
Type: System.ArgumentException
Message: Value does not fall within the expected range.
StackTrace:
at Microsoft.WindowsAPICodePack.Taskbar.TabbedThumbnailNativeMethods.SetPeekBitmap(IntPtr hwnd, IntPtr bitmap, Boolean displayFrame)
at Microsoft.Dynamics.Framework.UI.WinForms.FormWindow.OnDwmSendIconicLivePreviewBitmap()
at Microsoft.Dynamics.Framework.UI.WinForms.FormWindow.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source: Microsoft.Dynamics.Framework.UI.WinForms
HResult: -2147024809
Thanks in advance,
Alexandre Paes
*This post is locked for comments