Type: Microsoft.Dynamics.Nav.Client.NavClientClosingException Message: The connection to the server has been lost. The application will close. StackTrace: at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoExecute(Func`1 execute) at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoRethrowWithCatchException(Exception exception) at Microsoft.Dynamics.Nav.Client.ExceptionHandler.Application_ThreadException(Object sender, ThreadExceptionEventArgs e) at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t) at System.Windows.Forms.Control.WndProcException(Exception e) at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(ApplicationContext context) at Microsoft.Dynamics.Nav.Client.WinClient.RunCore() at Microsoft.Dynamics.Nav.Client.ExceptionHandler.ExecuteAndCatchExceptions(Func`1 execute) at Microsoft.Dynamics.Nav.Client.ExceptionHandler.DoExecute(Func`1 execute) at Microsoft.Dynamics.Nav.Client.WinClient.Run() Source: Microsoft.Dynamics.Nav.Client ---------------------------------- Type: Microsoft.Dynamics.Nav.Types.NavConnectionLostException Message: The connection to the server has been lost. The application will close. StackTrace: at Microsoft.Dynamics.Nav.Client.ExceptionHandler.<>c__DisplayClass2.<DoRethrowWithCatchException>b__0() at Microsoft.Dynamics.Nav.Client.ExceptionHandler.ExecuteAndCatchExceptions(Func`1 execute) Source: Microsoft.Dynamics.Nav.Client ---------------------------------- Type: Microsoft.Dynamics.Nav.Types.NavConnectionLostException Message: The connection to the server has been lost. The application will close. StackTrace: at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext) at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ServerInvocationHandler.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ServerInvocationHandler.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ServiceConnectionBase.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ServiceConnection.ActionField(NavRecordState& state, NavDataSet recDataSet, String controlTriggerMethodName) at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.ActionMethod(String triggerName) at Microsoft.Dynamics.Nav.Client.Actions.InvokePageTriggerAction.InvokeTrigger(LogicalControl logicalControl, UISession uiSession) at Microsoft.Dynamics.Nav.Client.Actions.InvokePageTriggerAction.InvokeCore(Boolean async, LogicalControl logicalControl, Object state, UISession uiSession) at Microsoft.Dynamics.Framework.UI.Action.InvokeCoreWithErrorHandling(Boolean async, LogicalControl logicalControl, Object state, UISession uiSession) at Microsoft.Dynamics.Framework.UI.Action.DoInvoke(LogicalControl logicalControl, UISession uiSession) at Microsoft.Dynamics.Framework.UI.ActionControl.Invoke() at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.DefaultInvokeAction(LogicalControlAdapter adapter, ActionControl actionControl) at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.DefaultInvokeAction(LogicalControlAdapter adapter) at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.OnInvoke() at Microsoft.Dynamics.Framework.UI.WinForms.ActionPaneActionControlAdapter.<InitializeNativeControl>b__0(Object sender, EventArgs e) at Microsoft.Dynamics.Framework.UI.WinForms.Controls.ActionItem.OnButtonClick() at Microsoft.Dynamics.Framework.UI.WinForms.Controls.ActionButton.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.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.Nav.Client.ServiceConnection ---------------------------------- Type: Microsoft.Dynamics.Nav.Types.NavConnectionLostException Message: The connection to the server has been lost. The application will close. StackTrace: at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.HandleCommunicationFailure[T](CallServerMethod`1 callServerMethod, Exception e, Int32 messageNumber, String sessionId) at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ServerInvocationHandler.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ServiceConnectionBase.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ServiceConnectionBase.CallServer(CallServerMethod callServerMethod) at Microsoft.Dynamics.Nav.Client.ServiceConnection.EndClientCall(Object result) at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1c.<CommittedDataFromServer>b__1b() at Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1.<RunClientRequest>b__0() at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext) Source: Microsoft.Dynamics.Nav.Client.ServiceConnection ---------------------------------- Type: System.ServiceModel.FaultException Action: http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher/fault Message: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs. StackTrace: Server stack trace: in System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) in System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) in System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) in System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) in System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) in System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.Dynamics.Nav.Types.INavService.EndClientCall(Object value) at Microsoft.Dynamics.Nav.Client.ServiceConnection.<>c__DisplayClassa1.<EndClientCall>b__a0() at Microsoft.Dynamics.Nav.Client.ServiceConnectionBase.<>c__DisplayClass1.<CallServer>b__0() at Microsoft.Dynamics.Nav.Client.ServerCallContext`1.InvokeCall(Object instance) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) Exception rethrown at [1]: at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase) at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData) at System.Threading.WaitCallback.EndInvoke(IAsyncResult result) at Microsoft.Dynamics.Nav.Client.ServerInvocationManager.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ServerInvocationHandler.CallServer[T](CallServerMethod`1 callServerMethod) at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[T](CallServerMethod`1 callServerMethod) Source: mscorlib
1 Service: MicrosoftDynamicsNavServer$NAV24 User: *** Type: System.ArgumentException Message: An item with the same key has already been added. StackTrace: at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args) Source: Microsoft.Dynamics.Nav.Ncl ---------------------------------- Type: System.Reflection.TargetInvocationException Message: Exception has been thrown by the target of an invocation. StackTrace: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args) Source: mscorlib ---------------------------------- Type: System.ArgumentException Message: An item with the same key has already been added. StackTrace: at Microsoft.Dynamics.Nav.Service.NSClientCallback.SendCommittedDataToClient(CommittedDataRequest committedDataRequest) at Microsoft.Dynamics.Nav.Service.NSClientCallback.SendCommittedDataToClient(NavDataSet recDataSet, NavRecordState dataSetState) at Microsoft.Dynamics.Nav.Service.NsFormDataAccess.GetCommittedData(Object sender, EventArgs e) at Microsoft.Dynamics.Nav.Runtime.NavConnection.FireDataCommitted() at Microsoft.Dynamics.Nav.Runtime.NavConnection.Commit() at Microsoft.Dynamics.Nav.Runtime.ALDatabase.ALCommit() at Microsoft.Dynamics.Nav.BusinessApplication.Page9305.Control1101366007_OnAction() Source: Microsoft.Dynamics.Nav.Service ---------------------------------- Type: System.ArgumentException Message: An item with the same key has already been added. StackTrace: in System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) in System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) in Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClassa.<OpenDialog>b__9() in Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1.<RunClientRequest>b__0() in Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext) Source: mscorlib 2. Service: MicrosoftDynamicsNavServer$NAV24 User: *** Type: System.ArgumentException Message: An item with the same key has already been added. StackTrace: at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args) at Microsoft.Dynamics.Nav.Service.NSField.ActionField(NavConnection con) at Microsoft.Dynamics.Nav.Service.NSField.Action(NavConnection connection) at Microsoft.Dynamics.Nav.Service.NSService.<>c__DisplayClass21.<ActionField>b__20(Connection connection) at Microsoft.Dynamics.Nav.Service.NSService.ExecuteOperation[T](String operationName, ServiceOperation`1 operation, Connection connection, Boolean revertLanguageChanges, WindowsIdentity impersonationIdentity) Source: Microsoft.Dynamics.Nav.Ncl ---------------------------------- Type: System.Reflection.TargetInvocationException Message: Exception has been thrown by the target of an invocation. StackTrace: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args) Source: mscorlib ---------------------------------- Type: System.ArgumentException Message: An item with the same key has already been added. StackTrace: at Microsoft.Dynamics.Nav.Service.NSClientCallback.SendCommittedDataToClient(CommittedDataRequest committedDataRequest) at Microsoft.Dynamics.Nav.Service.NSClientCallback.SendCommittedDataToClient(NavDataSet recDataSet, NavRecordState dataSetState) at Microsoft.Dynamics.Nav.Service.NsFormDataAccess.GetCommittedData(Object sender, EventArgs e) at Microsoft.Dynamics.Nav.Runtime.NavConnection.FireDataCommitted() at Microsoft.Dynamics.Nav.Runtime.NavConnection.Commit() at Microsoft.Dynamics.Nav.Runtime.ALDatabase.ALCommit() at Microsoft.Dynamics.Nav.BusinessApplication.Page9305.Control1101366007_OnAction() Source: Microsoft.Dynamics.Nav.Service ---------------------------------- Type: System.ArgumentException Message: An item with the same key has already been added. StackTrace: in System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) in System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) in Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClassa.<OpenDialog>b__9() in Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1.<RunClientRequest>b__0() in Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext) Source: mscorlib
Answers
It works as expected... More or Less...
In the case of this problem then it should be fixed. We released it in sp1 with build 32775 under KB article 2613306 as hotfix ID 437859. The problem occurs if the talk between the client/server is "too" slow for the client to handle the continuous 'send commited data' to the client. Now with the change the client just wait with the second one until the first one has done the initial setup.
So please verify that you have installed build 32775 (or newer) for the client and the same build (or newer) for the server. If you still see the crash then don't hesitate to send us a hotfix with the two exception logs.
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
thx again!
It works as expected... More or Less...
We did a check and the system where this problem occurs has build 32275 installed.
Next Monday we'll have a go live and in this system we installed the build 32775. We did some tests and the error above didn't occur.
After the go live the this procedure will be put under stress and we will be able to let you know if the issue is solved with this build change.
Thanks again for your help.
It works as expected... More or Less...
after 2 months we can say that the issue is solved using a newer build as you suggest.
In this moment we're using build 33137.
many thanks for the help!
It works as expected... More or Less...
We are working hard in the Nav teams to deliver a high quality of Nav 2013.
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.