简体   繁体   English

如何在Windows 8上修复.NET Framework 4.0?

[英]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. 在尝试调试我的真正问题时 ,我正在尝试修复.NET框架,因为它看起来像System.Data.SqlClient中的东西被冲洗了。 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. 但你无法卸载它,因为它是Windows8中操作系统的一部分,你无法安装它,因为它已经安装,所以我找不到任何方法来解决我的问题。 I suppose I could reinstall the whole OS, but that's way too painful. 我想我可以重新安装整个操作系统,但这太痛苦了。

To Repair corrupted Windows files in Windows 8, open a command prompt with admin rights and run this DISM command : 要修复Windows 8中损坏的Windows文件,请使用管理员权限打开命令提示符并运行此DISM命令

DISM /Online /Cleanup-Image /RestoreHealth

This downloads the clean files and installs them correctly. 这将下载干净的文件并正确安装它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在.NET Framework 4.0上运行MVC 5应用程序吗? - Can I run MVC 5 application on .NET Framework 4.0? .Net Framework 4.0与Windows Server 2012的兼容性 - .Net Framework 4.0 Compatiblity with Windows Server 2012 我将如何使用带有.net 4.0的实体框架6的breeze - How will I use breeze with Entity Framework 6 with .net 4.0 如何在没有.NET v4.0的目标环境上部署.NET v4.0应用程序? - How can I deploy .NET v4.0 application on target environment without .NET v4.0? 如何在Windows 8中处理.Net Framework版本V4.0和V3.5 - How to deal with .Net framework versions V4.0 vs V3.5 in Windows 8 .NET 4.0图形库 - 如何捕获“整个”屏幕? - .NET 4.0 Graphics library - How can I capture the “whole” screen? .NET 4.0框架上的Windows Forms WebBrowser控件错误 - Windows Forms WebBrowser control error on .net 4.0 framework Windows XP .NET Framework 4.0中WPF xaml中的异常 - Exception in WPF xaml in Windows XP .NET Framework 4.0 是否可以在不使用vs 2010的情况下基于.NET Framework 4.0编写代码? - Can I write the code based on .NET Framework 4.0 without vs 2010? 我可以在MS.Net Framework 4.0中使用SqlClient的Mono实现吗? - Can I use the Mono implementation of SqlClient in MS.Net framework 4.0?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM