To repair the .NET Framework, go to Control Panel > Programs > Programs and Features > Microsoft .NET Framework > Change > Repair.