The problem can occur if the operating system does not have the appropriate Windows updates.
Method 1:Check that you have the latest Windows Updates.
From the Windows Start menu, select Settings>Update & Security>Check for updates.
If your local group policies allow updates from the Microsoft update server, from the Windows Start menu, select Settings>Update & Security>Check online for updates from Microsoft Update.
Method 2:
Download and install .NET Framework 4.8 from the Microsoft support page. This version is an in-place update to .NET Framework 4.7.2.