New-NAVWebServerInstance – The data is invalid (0x8007000D)

When trying to install a new web client instance of Business Central 19.1 on Windows Server 2022 I ran into this error:

Set-WebConfigurationProperty : The data is invalid. (Exception from HRESULT: 0x8007000D)
At C:\Program Files\Microsoft Dynamics 365 Business Central\xxxxxx\Service\NAVWebClientManagement.psm1:654 char:5

  • Set-WebConfigurationProperty -Filter ‘/system.webServer/security/ …
  • ~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [Set-WebConfigurationProperty], COMException
    • FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.SetConfigurationPropertyCommand

Set-WebConfigurationProperty : The data is invalid. (Exception from HRESULT: 0x8007000D)
At C:\Program Files\Microsoft Dynamics 365 Business Central\xxxxxx\Service\NAVWebClientManagement.psm1:655 char:5

  • Set-WebConfigurationProperty -Filter ‘/system.webServer/security/ …
  • ~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [Set-WebConfigurationProperty], COMException
    • FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.SetConfigurationPropertyCommand

The error was solved by downloading and installing the latest version of .Net Runtime from https://dotnet.microsoft.com/download/dotnet/5.0/runtime (Choose “Download Hosting Bundle”). In my case the latest version was 5.0.11. After installing this version the problem was gone.

Databaseversionno and NAV build versions

I have been working on a Powershell script that can combine the Databaseversionno from the table $ndo$dbproperty in a NAV database with the NAV build version. I will post my script here soon.

These are the combinations that I have found so far.

Databaseversionno NAV build version
140 6.0.27808.0
150 6.0.29626.0
60200 6.0.32813.0
60210 6.0.33750.0
70340 7.0.42591.0
70340 7.0.36347.0
70340 7.0.49750.0
70340 7.0.40468.0
70730 7.1.38455.0
70730 7.1.41768.0
70730 7.1.36703.0
70740 7.1.42221.0
70740 7.1.44366.0
70750 7.1.49751.0
70750 7.1.46057.0
71040 8.0.38457.0
71040 8.0.37874.0
71050 8.0.40938.0
71050 8.0.39663.0
71061 8.0.42222.0
71061 8.0.43389.0
71062 8.0.45483.0
71063 8.0.47254.0
80190 9.0.44365.0
80190 9.0.44974.0
80190 9.0.46773.0
80190 9.0.42815.0
80190 9.0.43402.0
80211 9.0.46773.0
80211 9.0.46621.0
80212 9.0.47444.0
91470 10.0.14767.0
91470 10.0.14199.0
91470 10.0.15140.0
91470 10.0.13682.0
91481 10.0.16996.0
91483 10.0.18197.0
91484 10.0.18609.0
91485 10.0.19831.0
91485 10.0.18976.0
91487 10.0.29965.0
91487 10.0.21440.0
91487 10.0.18197.0
100550 11.0.19394.0
100550 11.0.19846.0
100570 11.0.20783.0
100580 11.0.21441.0
100581 11.0.23019.0
130270 13.0.26413.0
130270 13.0.25924.0
130270 13.0.27183.0
130270 13.0.34560.0
130450 14.0.35916.0

I will post more about this later.I’m going to use this to make another Powershell script, that will be able to install a NAV Server-tier with only the database name as a parameter.

PS. If anyone has a similar list I would be very happy if you would send me a copy or show me where to find it.