Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Windows Client crashes with System.NullReferenceException after Windows Update

(0) ShareShare
ReportReport
Posted on by

LAST UPDATE 20th May 2022

If your Dynamics NAV or Dynamics 365 Business Central Windows Client does not start after a windows update, be sure to look inside Event Viewer Application Log and see if you find a stack trace like the following

KEY.PNG

SOLUTIONS

01. CUMULATIVE UPDATES

This event should have happened right after a Windows update and Dynamics NAV / Dynamics 365 Business Central Windows Client is a victim of this. Worth noticing that Web Client is not affected.

Some registry keys getting lost with that, unfortunately, which the application needs as it is checking during client startup if Microsoft Excel is installed and e.g., which version has been deployed.

Despite Dynamics NAV / 365 Business Central being a victim of these Office updates, product group has resolved the Excel problem within versions that are still in mainstream support that deploy also Windows client. Below you will find out the version and in which minimum Cumulative Update

- Dynamics NAV 2018 Cumulative Update 52 (May 2022)

432543

The Windows client crashes after an Office Update removes the registry keys.

- Dynamics 365 Business Central 2019 Spring Release (version 14.x) Cumulative Update 35 (May 2022)

432594

The Windows client crashes after an Office Update removes the registry keys.

Considering all other versions that are out of mainstream support that might be affected, up to and including Dynamics NAV 2017 (and also Dynamics 365 Business Central October 2019 13.x), we suggest implementing a script through a Windows scheduled task that is checking if these registry key exists, if not these are added within the script.

Needless to say, that Microsoft best practice is to upgrade to the latest and greatest on-premises version - currently Dynamics 365 Business Central 2022 Wave 1 (version 20.x) - or its SaaS equivalent.

02. WINDOWS CLIENT LAUNCHER

Another way of resolving this problem for all versions that do support Windows Client, is to implement Windows Client launcher. 

You can download the Windows Client launcher here

https://download.microsoft.com/download/0/e/8/0e854afe-50fb-4c09-9305-b2ed305926d3/Microsoft.Dynamics.Nav.Client.Launcher.zip

NOTE: the executable and its source code are provided AS IS.

It is a launcher application for the Windows client. By using this, it first verifies and fixes the registry before launching the Windows client. That way it should be safe to use the older versions of Dynamics NAV without any out-of-band fixes to the actual product, if any.

How to use:

  1. Be sure to unblock the package after downloading it.
  2. Unzip the package – it contains the actual launcher executable.
  3. Open the installation folder containing the Windows client, e.g. “C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client”.
  4. Rename these two files in the installation folder:
    • Microsoft.Dynamics.Nav.Client.exe => Microsoft.Dynamics.Nav.Client.App.exe
    • Microsoft.Dynamics.Nav.Client.exe.config => Microsoft.Dynamics.Nav.Client.App.exe.config
  1. Copy the launcher executable “Microsoft.Dynamics.Nav.Client.exe” from the Release folder of the unpacked zip-file to the installation folder.

Notes:

  • The reason for using the existing Windows client executable file name for the launcher executable, is that the existing shortcuts, links, etc. will continue working without any modification on the user machine.
  • The launcher does not support the ClickOnce setup.

03. RE-ADD REGISTRY KEYS

To resolve this problem manually (but it might resurrect at the next office update), you have to verify that these registry path and keys exists

 REG_2E00_.PNG

If these are not existing, you have to add them manually or through a .REG file. (NOTE: these are related to Office16).

ADDITIONAL NOTES ON RE-ADDING REGISTRY KEYS MANUALLY:

1. If after adding the aforementioned key, windows client no longer crashes but the Export to excel icon is greyed out in the client, you also have to add the same registry key parameters to the current user:

HKCU\Software\Microsoft\Windows\CurrentVersion\AppPaths\excel.exe

pastedimage1649668002139v1.png

2. If you have some custom code that is actually targeting Word.exe and a specific version, then you might think of re-adding the very same keys also for winword.exe 

  

  • Marco Mels Profile Picture
    on at
    RE: Windows Client crashes with System.NullReferenceException after Windows Update

    Thank you for sharing.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans