Check the exact Dotnet Framework version in web.config/app.config file, and the version installed in your machine. Like having installed 4.8, and the application needs 4.8.1 to compile well.