Tuesday, April 12, 2022

NAV 2016 Crash - Windows Application Not Working

Hello Friends,

Sunddenly in All User PC (with Windows 10) start crash NAV 2016 version

We face same issue with multiple custom in last one week

NAV working fine before on same machine and suddenly on next day it was stop working.

It is look like some new windows 10 update not compatible with NAV 2016 Version

Total 40+ User PC face same issue (all the users from different customers)

If we restore PC with one week back restore point than it is start working.... else next option is format PC and install again everything

Below error coming in event viewer while start NAV

Issue:

Application: Microsoft.Dynamics.Nav.Client.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.NullReferenceException

   at Microsoft.Dynamics.Nav.Client.WinClientExcelExportService.FindMajorVersion(Microsoft.Win32.RegistryKey)

   at Microsoft.Dynamics.Nav.Client.WinClientExcelExportService.<.ctor>b__0(Microsoft.Win32.RegistryKey)

   at Microsoft.Dynamics.Nav.Client.WinClientExcelExportService.FindRegistryKey(Microsoft.Win32.RegistryHive, System.String, System.Action`1<Microsoft.Win32.RegistryKey>)

   at Microsoft.Dynamics.Nav.Client.WinClientExcelExportService.FindFirstRegistryKey(System.String, System.Action`1<Microsoft.Win32.RegistryKey>)

   at Microsoft.Dynamics.Nav.Client.WinClientExcelExportService..ctor(Microsoft.Dynamics.Framework.UI.UISession)

   at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.<AddServices>b__6(Microsoft.Dynamics.Framework.UI.UISession)

   at Microsoft.Dynamics.Framework.UI.ClientSessionCore.AddUIService(System.Func`2<Microsoft.Dynamics.Framework.UI.UISession,Microsoft.Dynamics.Framework.UI.IUIService>)

   at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.AddServices()

   at Microsoft.Dynamics.Framework.UI.ClientSessionCore.Prepare()

   at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.SetupClientSession()

   at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunCore()

   at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.Run(Boolean)

   at Microsoft.Dynamics.Nav.Client.Program.Main(System.String[])




Solution:

This issue seems either a Windows update or an Office update.

Please try the below mitigation steps:
1. Do an online repair of the Office 365, as this will correct the security setting of these DLL after the update was done.

2. Doing manually changes to the security settings seems to work as well, but will be reverted after some time as were notified.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\excel.exe in regedit and add value to the (Default) key with C:\Program Files (x86)\Microsoft Office\root\Office16\Excel.exe. 

We do have updated the blog (99+) Windows Client crashes with System.NullReferenceException after Windows Update - Dynamics 365 Business Central Forum Community Forum for the same.

 NOTE: PG will only fix NAV 2018 and BC 14.x. Platform hotfix is contained in the upcoming May CUs (ETA 6th May). 

All other versions that are out of support or out of mainstream support will not have any out of band hotfix. 

Solution for these is to upgrade to a supported version or create a scheduled task with a script that add the registry key at startup (or something on this flavor).

============

Done.

Thank you for reading

Keep Sharing....Keep Growing.....

No comments:

Post a Comment