.Net Framework 3 和 4 错误

.Net Framework 3 和 4 错误

我最近重启了电脑,启动时提示我应用程序需要 .NetFramwork 4.0 才能运行。经过一番搜索,我还发现 .Net 3.5.1 也不存在。

所以我认为这是重新安装 .Net 的一个简单事实。但是当我尝试安装 .Net 4.0 和 4.5 时,我收到此错误(0x80070643)。所以我想我需要先安装 .Net 3,我尝试这样做,但它告诉我更改启用 Windows 功能中的设置。当我打开它时,它显示 .Net 3.0 已启用,我试图禁用它,当我按下应用时,它出现一个错误,某些功能未启用,并告诉我重新启动。当我这样做时,我回到了启用 Windows 功能窗口。发现它已被禁用。但是当我再次尝试安装 .Net 3 时。仍然告诉我更改 Windows 功能设置。当我再次尝试打开它时,它失败了,告诉我重新启动,但仍然没有启用。

我尝试过的事情:

Using the .Net fix tool
Using the .Net Cleanup tool, and reinstalling, .Net 1.1 worked fine, but not 3
Using the TFC Temp removal tool
Using Microsoft Fixit tool
Going into .NetFramwork folder, copying and changing the .default to .config, 
which is already there, but I changed them to .old, and put the default ones in
(For both the 32 and 64 bit folders)
Uninstalling SlimDX .NetFramework Files
Tried Installing .Net 2.0 sp2, same error, use "Enable Windows Features"
Tried this command "DISM /Online /Enable-Feature /FeatureName:NetFx3 /ALL /NoRestart"
cameback with error 87

它们全部不能工作,但是.net-framwork 4.0、4.5、3、3 sp1、2.0 sp2. 1.1 和它的 sp 可以工作。

有什么想法吗?非常感谢!

编辑:进行了验证测试。在日志中,除 .Net 2.0 外,每个 .Net Framework 都标记为未安装。日志文件:http://pastebin.com/8E7jTBkG

答案1

我简直不敢相信……几个月前,我将 Microsoft .NetFramwork 文件夹移到了我的 D: 驱动器,并在它们之间建立了符号链接。我忘了这件事,因为几个月来它都没有造成问题,但现在我把它移回来了,这可能是它被修复的原因。

我修复此问题的方法是:

Start in safe mode, try sfc /scannow in cmd.
If not working, chkdsk /f on all the drives.
Then, if the .Net folder is on another drive, move it back.
Try sfc /scannow, should work now.
Startup normally, run .Net cleanup tool
Then install .NetFramwork 4.5.2, not 4.0.

对我来说,这个方法很管用。不过你的主题可能不见了,你需要重新安装它们。

感谢 Psycogeek 的帮助。

相关内容