Install PSM HealthCheck error out with "Set-WebConfiguration : The data is invalid. (Exception from HRESULT: 0x8007000D)"
Symptom
While running .\healthcheck.ps1, it throws out below exception:
Receiving the following error:
Set-WebConfiguration : The data is invalid. (Exception from HRESULT: 0x8007000D)
At D:\psm\HealthCheck-v1.0\HealthCheck\HealthCheck.ps1:219 char:3
+ Set-WebConfiguration -Location "$siteName/PSM" -Filter 'syste ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-WebConfiguration], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.SetConfigurationCommand
Environment
12.2 Privileged Access Manager (PAM, self-hosted) PSM PSM PSM Monitoring Page
Cause
The required Microsoft .NET Windows Server Hosting packages was not installed.
Resolution
Install Microsoft .NET Windows Server Hosting Bundle by downloading the latest version from https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-3.1.22-windows-hosting-bundle-installer
The bundle includes the .NET Core runtime, the ASP.NET Core runtime, and if installed on a machine with IIS it will also add the ASP.NET Core IIS Module.
.NET Core by itself is not sufficient to install the PSM HealthCheck.