We are trying to solve a rather perplexing error in an ASP.NET application (DNN / DotNetNuke) after upgrading our webservers from the EOL Windows Server 2012 R2 to 2022 (currently experiencing the error on 2016). We upgraded the testing server successfully with no issues but the production server (which the testing server is an exact clone of) is giving us the error in the screenshot here below. In web.config the targetFramework="4.7.2" is failing even though we have 4.7.4076.0 installed as shown at the bottom of the screenshot. Has anyone experienced this before or familiar with a potential fix?

If I remove the targetFramework="4.7.2" compilation option in the web.config, the site runs fine, but I would prefer to address the root cause of IIS not recognizing that the 4.7.4076.0 that it is currently exceeds the 4.7.2 minimum target.
Thanks in advance.