NAV 2009-->NAV 2017 After Upgrade, AssistEdit buttons casuse crash.
barandeniz
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
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
0
Best 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.0
Answers
-
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.0 -
kalyankandimalla wrote: »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
0 -
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions