Today I had an issue with a new test database I created. I could open the database with the classic client. The role tailored client gave an exception error as soon as the Role Center was showed.


The stack trace shows the following information:
Type: System.Runtime.InteropServices.COMException
ErrorCode: -2147467259
Message: Exception from HRESULT: 0x80040F07
StackTrace:
at Microsoft.Dynamics.Nav.Client.ExceptionHandler.<>c__DisplayClass2.<DoRethrowWithCatchException>b__0()
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.ExceptionHandler.DoRethrowWithCatchException(Exception exception)
Source: Microsoft.Dynamics.Nav.Client
———————————-
Type: System.Runtime.InteropServices.COMException
ErrorCode: -2147217657
Message: Exception from HRESULT: 0x80040F07
StackTrace:
at Microsoft.WindowsAPICodePack.Taskbar.ICustomDestinationList.CommitList()
at Microsoft.WindowsAPICodePack.Taskbar.JumpList.Refresh()
at Microsoft.Dynamics.Nav.Client.Controls.NavNavigationFormAdapter.CreateJumpList(CommandBarLogicalControl commandBar)
at Microsoft.Dynamics.Nav.Client.Controls.NavNavigationFormAdapter.OnCreateJumpList()
at Microsoft.Dynamics.Framework.UI.Windows.LogicalFormAdapterBase.CreateJumpList()
at Microsoft.Dynamics.Framework.UI.WinForms.LogicalFormAdapter.FormTaskbarButtonCreated(Object sender, EventArgs e)
at Microsoft.Dynamics.Framework.UI.WinForms.FormWindow.OnTaskbarButtonCreated()
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
I needed some time to figure this one out. After eliminating several possible problems it suddenly worked. A few minutes later it appeared the shortcut name was the problem. I used a shortcut to start the client and open the correct database. This shortcut was called ‘Ketentest nieuwe installatie RTC’ . This name contains the word ‘install’ which caused the issue. We have a lot of this kind of shortcuts and never had this problem before (incl. NAV 2009 SP1). Since the R2 release of NAV2009 you cannot use shortcuts with the word install in the name.
Type: System.Runtime.InteropServices.COMException
ErrorCode: -2147467259
Message: Exception from HRESULT: 0x80040F07
StackTrace:
at Microsoft.Dynamics.Nav.Client.ExceptionHandler.<>c__DisplayClass2.<DoRethrowWithCatchException>b__0()
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.ExceptionHandler.DoRethrowWithCatchException(Exception exception)
Source: Microsoft.Dynamics.Nav.Client
———————————-
Type: System.Runtime.InteropServices.COMException
ErrorCode: -2147217657
Message: Exception from HRESULT: 0x80040F07
StackTrace:
at Microsoft.WindowsAPICodePack.Taskbar.ICustomDestinationList.CommitList()
at Microsoft.WindowsAPICodePack.Taskbar.JumpList.Refresh()
at Microsoft.Dynamics.Nav.Client.Controls.NavNavigationFormAdapter.CreateJumpList(CommandBarLogicalControl commandBar)
at Microsoft.Dynamics.Nav.Client.Controls.NavNavigationFormAdapter.OnCreateJumpList()
at Microsoft.Dynamics.Framework.UI.Windows.LogicalFormAdapterBase.CreateJumpList()
at Microsoft.Dynamics.Framework.UI.WinForms.LogicalFormAdapter.FormTaskbarButtonCreated(Object sender, EventArgs e)
at Microsoft.Dynamics.Framework.UI.WinForms.FormWindow.OnTaskbarButtonCreated()
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