NAV 2009-->NAV 2017 After Upgrade, AssistEdit buttons casuse crash.

barandenizbarandeniz Member Posts: 44
Hello, recently we have upgraded a customer from 2009 to 2007. During the Application Code tests, we noticed that all asistedit buttons crashes nav. i am posting the EventViewer log below so we can together find a solution. Its a bit urgent problem.



Type: Microsoft.Dynamics.Nav.Client.NavClientClosingException
Fatal: False
ShowError: True
Message: <ii>This operation cannot be completed. There is no active connection to the server. Close the application and start it again.</ii>
StackTrace:
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(Func`1 execute)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(Exception exception, Boolean designMode)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.WinFormsDispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs eventArgs)
at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.HandleDispatcherException(Object sender, Exception e)
at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.WndProcException(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(IntPtr 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 Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunMessagePump()
at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunCore()
at 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: <ii>This operation cannot be completed. There is no active connection to the server. Close the application and start it again.</ii>
StackTrace:
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass11_0.<DoRethrowWithCatchException>b__0()
at 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: <ii>This operation cannot be completed. There is no active connection to the server. Close the application and start it again.</ii>
StackTrace:
at Microsoft.Dynamics.Nav.Client.ServiceConnection.CallServer[T](BeginCallServerMethod beginCallServerMethod, EndCallServerMethod`1 endCallServerMethod)
at Microsoft.Dynamics.Nav.Client.ServiceConnectionBase.GetPage(PageRequestDefinition pageRequestDefinition, NavRecordState& state)
at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.GetPage(PageRequestDefinition pageRequestDefinition, Bookmark bookmark)
at Microsoft.Dynamics.Nav.Client.DataBinder.NavPageReader.GetPage(PageRequestDefinition pageRequestDefinition, Bookmark pageBookmark)
at Microsoft.Dynamics.Nav.Client.DataBinder.NavBindingManager.GetDataAndHandleCSideException[T](Func`1 getData)
at Microsoft.Dynamics.Nav.Client.DataBinder.NavBindingManager.GetRecord(Bookmark bookmark)
at Microsoft.Dynamics.Nav.Client.DataBinder.NavBindingManager.UpdateRow(NavRowEntry navRowEntry, Bookmark updatedBookmark)
at Microsoft.Dynamics.Nav.Client.DataBinder.NavBindingManager.Refresh(NavRowEntry navRowEntry)
at Microsoft.Dynamics.Nav.Client.DataBinder.NavBindingManager.RefreshCurrentRowEntry(Boolean refreshIfDirty)
at Microsoft.Dynamics.Nav.Client.DataBinder.AssistEditOperationContext.CompleteOperationCore()
at Microsoft.Dynamics.Nav.Client.DataBinder.DataAccessOperationContext.DisposeCore()
at Microsoft.Dynamics.Nav.Client.DataBinder.OperationContext.Dispose()
at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.AssistEditMethod(String controlName)
at Microsoft.Dynamics.Nav.Client.Actions.PageDataAction.InvokeCore(LogicalControl logicalControl, Object state, UISession uiSession)
at Microsoft.Dynamics.Framework.UI.LogicalAction.InvokeCoreWithErrorHandling(LogicalControl logicalControl, Object state, UISession uiSession)
at Microsoft.Dynamics.Framework.UI.LogicalAction.DoInvoke(LogicalControl logicalControl, UISession uiSession)
at Microsoft.Dynamics.Framework.UI.ActionControl.Invoke()
at Microsoft.Dynamics.Framework.UI.Windows.ActionsHelper.ModalitySafe(Action action)
at Microsoft.Dynamics.Framework.UI.Windows.ActionsHelper.ModalitySafeInvoke(ActionControl actionControl)
at Microsoft.Dynamics.Framework.UI.Windows.ActionControlAdapterBase.DefaultInvokeAction(LogicalControlAdapter adapter, ActionControl actionControl)
at Microsoft.Dynamics.Framework.UI.WinForms.ContainedControlProvider.Contained_Button_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source: Microsoft.Dynamics.Nav.Client.ServiceConnection
HResult: -2146233088

Best Answer

  • barandenizbarandeniz Member Posts: 44
    Answer ✓
    A fast update here, i think the issue somehow caused by a wrong license configuration. With our Dev. License it worked. After we reconfigured customer license and created again, issue is solved.

Answers

  • kalyankandimallakalyankandimalla Member Posts: 56
    Hi,

    I would have tried these steps:
    • Synchronize the database again (Make sure there are no upgrade toolkit objects in the database).
    • Compile all objects, and check for any issues.
    • Restart the service.
    • Please check if you are using same version/build of NAV client to which the database is upgraded.
    • Have you tried debugging the issue? may be that will also help to find the cause.

    Sorry, if you have already tried above things.
  • barandenizbarandeniz Member Posts: 44
    Hi,

    I would have tried these steps:
    • Synchronize the database again (Make sure there are no upgrade toolkit objects in the database).
    • Compile all objects, and check for any issues.
    • Restart the service.
    • Please check if you are using same version/build of NAV client to which the database is upgraded.
    • Have you tried debugging the issue? may be that will also help to find the cause.

    Sorry, if you have already tried above things.

    Please check if you are using same version/build of NAV client to which the database is upgraded.
    Yes, i am sure that both are on same version.
    Have you tried debugging the issue? may be that will also help to find the cause.
    Does not trigger Debugging Process. So no luck on debugging.

    I'll check first three steps and will update the post. Thank you for your answer btw :)
  • barandenizbarandeniz Member Posts: 44
    Answer ✓
    A fast update here, i think the issue somehow caused by a wrong license configuration. With our Dev. License it worked. After we reconfigured customer license and created again, issue is solved.
Sign In or Register to comment.