.NET Framework 4.0 reached end-of-life in 2016. Running it on Windows 7 (also EOL since Jan 2023) exposes systems to unpatched vulnerabilities (CVE-2017-8759, CVE-2020-1046).