To reach build 4.0.3019 , you need (Update for .NET Framework 4.0).
If you specifically need version 4.0 for a legacy application, you should use the official Microsoft installers: Web Installer Microsoft .NET Framework 4 (Web Installer) Download Net Framework 4.0.3019 For Windows 7 64 11 Fix
Understanding the .NET Framework 4.0.30319 Version: Troubleshooting & Fixes To reach build 4
Even if you have the software installed, you might still see "Initialization Error" or "File Not Found" messages. Here are the most effective fixes: To reach build 4.0.3019
Despite newer versions like 4.5, 4.6, 4.7, and 4.8 being available, certain legacy scenarios require 4.0.3019: