.NET Framework 4.6.2 is not compatible with Windows Server 2008 R2. The minimum supported operating systems for .NET Framework 4.6.2 are Windows 7 SP1, Windows Server 2008 R2 SP1, and Windows Server 2012. The error message you encountered is likely due to this incompatibility. You can refer to the following Microsoft documentation for more information on the system requirements for different versions of .NET Framework:
https://learn.microsoft.com/en-us/dotnet/framework/install/guide-for-developers
References: