Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I repair .NET Framework 4.0 on Windows 8?

While trying debug my real problem, I'm trying to repair the .NET framework, because it looks like something in System.Data.SqlClient is hosed. But you can't uninstall this because it's part of the OS in Windows8, and you can't install it because it's already installed, and so I can't find any way to fix my problem. I suppose I could reinstall the whole OS, but that's way too painful.

like image 460
Joshua Frank Avatar asked Sep 20 '13 15:09

Joshua Frank


People also ask

Can you repair .NET Framework?

You can repair your . NET Framework install using the . NET Framework Repair Tool.

Which .NET Framework is compatible with Windows 8?

NET Framework 4.6 is the latest supported . NET Framework version on Windows 8.

How do I enable .NET Framework on Windows 8?

Enable the .NET Framework 3.5 in Control Panelon your keyboard, type "Windows Features", and press Enter. The Turn Windows features on or off dialog box appears. Select the .NET Framework 3.5 (includes .NET 2.0 and 3.0) check box, select OK, and reboot your computer if prompted.


1 Answers

To Repair corrupted Windows files in Windows 8, open a command prompt with admin rights and run this DISM command:

DISM /Online /Cleanup-Image /RestoreHealth

This downloads the clean files and installs them correctly.

like image 63
magicandre1981 Avatar answered Oct 04 '22 21:10

magicandre1981