Windows 10 上的 .NET Framework 4.0 安装损坏

阿兰

在 Windows 更新错误后,sfc /scannow确认一堆 .NET Framework 4.0 文件“损坏”。以下是列出所有损坏文件的日志摘录:

C:\WINDOWS\Microsoft.NET\Assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\\PresentationFramework.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Assembly\GAC_MSIL\PresentationFramework-SystemData\v4.0_4.0.0.0__b77a5c561934e089\\PresentationFramework-SystemData.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Assembly\GAC_MSIL\System.Windows.Controls.Ribbon\v4.0_4.0.0.0__b77a5c561934e089\\System.Windows.Controls.Ribbon.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Assembly\GAC_MSIL\UIAutomationClient\v4.0_4.0.0.0__31bf3856ad364e35\\UIAutomationClient.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Assembly\GAC_MSIL\UIAutomationClientsideProviders\v4.0_4.0.0.0__31bf3856ad364e35\\UIAutomationClientsideProviders.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\\UIAutomationProvider.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\\UIAutomationTypes.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\\WindowsBase.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\\clr.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\\mscordacwks.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\\mscordbi.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\\peverify.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\\SOS.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\NativeImages\\mscorlib.ni.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\PenIMC.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\PenIMC_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\PenIMC2_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\PresentationCore.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\PresentationFramework.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\PresentationFramework-SystemData.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\PresentationHost_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\PresentationNative_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\System.Windows.Controls.Ribbon.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\UIAutomationClient.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\UIAutomationClientsideProviders.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\UIAutomationProvider.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\UIAutomationTypes.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\WindowsBase.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\\wpfgfx_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF\en-US\\PresentationHost_v0400.dll.mui; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\\clr.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\\compatjit.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\\mscordacwks.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\\mscordbi.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\\peverify.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\\SOS.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\NativeImages\\mscorlib.ni.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\PenIMC.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\PenIMC_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\PenIMC2_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\PresentationCore.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\PresentationFramework.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\PresentationFramework-SystemData.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\PresentationHost_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\PresentationNative_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\System.Windows.Controls.Ribbon.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\UIAutomationClient.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\UIAutomationClientsideProviders.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\UIAutomationProvider.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\UIAutomationTypes.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\WindowsBase.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\\wpfgfx_v0400.dll; source file in store is also corrupted
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\WPF\en-US\\PresentationHost_v0400.dll.mui; source file in store is also corrupted

到目前为止,我已经尝试过:

  1. Windows 更新(似乎是导致问题的原因)

  2. Windows 框架修复工具- 仅在 Windows 10 上修复 v4.7 或更高版本。无益地断言较低的所有内容都“包含在操作系统中”。

  3. 关闭与 .NET 相关的 Windows 功能,重新启动并重新打开它们。

    在此处输入图片说明

    我真的希望这会奏效,它声称是从 Windows 更新重新下载,但最终结果似乎没有变化。

  4. DISM.exe /Online /Cleanup-image /Restorehealth (图片未找到)

  5. 根据此答案下载源图像- 但根据 DISM 我的图像是10.0.19041.572

    PS C:\> dism
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.572
    

    根据“关于”我的形象是19042.630- 不知道为什么这些不对齐:

    在此处输入图片说明

    唯一可用的图像都不是。

    项目清单

    我尝试下载和解压,.631因为它看起来很接近,但将其用作修复源仍然失败,并显示“找不到源”。(遵循wintips上相对现代的说明

    突出日志:

    Host machine information: OS Version=10.0.19042
    ...
    Executing command line: "C:\Windows\system32\Dism.exe" /Online /Cleanup-Image /RestoreHealth /Source:WIM:F:\sources\install.wim:6 /LimitAccess
    ...
    Target image information: OS Version=10.0.19042.630
    ...
    source for package or file not found, ResolveSource() unsuccessful. (CBS HRESULT=0x800f081f) - CCbsConUIHandler::Error
    The source files could not be found; their location must be specified using the /source option to restore the feature
    
  6. 到目前为止,我取得的最大成功是从家中另一台运行相同版本 Windows 的计算机上密封“Microsoft.NET”文件夹,取得所有权,覆盖文件,并将所有权归还给TrustedInstaller. 它确实阻止了每个依赖于 Framework 4.0 的应用程序在启动时崩溃(我暗示损坏确实发生了),但sfc仍然认为它们已损坏。

感谢任何不涉及重新安装的建议。

Tekkie_Boy

对 CBS 日志的分析表明,下载的 ISO 文件中不包含损坏的文件,因此修复必须以错误代码 0x800f081f CBS_E_SOURCE_MISSING 结束。

我下载了上次发布的 Net-Framework 更新包 KB4586876,并用 7zip 解压。然后我expand "Windows10.0-KB4586876-x64-NDP48.cab" -f: *. * Target path再次使用该命令解压 Windows10.0-KB4586876-x64-NDP48.cab 文件

之后,我将版本号与其日志中的错误文件进行了比较。比较表明它们匹配。

必须在 ISO 中实施更新包,然后必须以 ISO 作为源再次执行修复。

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/servicing-the-image-with-windows-updates-sxs

然后文件将被导入并且修复将成功完成。

但是我选择了一个缩写并按照注释创建了修复包,SFCFix 程序将包中的文件直接复制到 WinSxs 文件夹中,然后 sfc 使用正确的文件进行修复。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何在Windows 10上重新安装.NET Framework 4 / 4.6?

.net Framework 3.5不会在Windows 10上安装

使用 Microsoft 说明在 Windows 10 上安装 .Net Framework 3.5

如何在Windows 10中安装.NET 4 Framework

如何在Windows 8上修复.NET Framework 4安装

在新安装的Windows 10上GAC似乎已损坏

无法在Windows 10上安装.net 3.5

如何在Windows 10上修复.net Framework 4.6.1

无法在Windows 10上安装framework-res.apk

Windows 10上的BSOD 0xC4

在Windows 10上安装Visual Studio 2015时出现“安装程序包丢失或损坏”错误

在Windows Server Core Docker上安装.NET Framework 3.5

在Windows Server 2016中安装.NET Framework 4(或4.6)

在Windows 10上使用Strawberry Perl安装Net :: Pcap

在Windows 10上安装IIS 7和.Net 4.0

如何删除.NET并在Windows 10上安装早期版本

在Windows 10上安装JDK-由于WBEM库/ WMI库损坏而导致MsiEnumProducts错误1610

分区损坏后如何在Dell Venue Pro(Uefi)上安装Windows 8/10

无法在Windows 7上安装Windows调试工具,它表示它需要.NET Framework 4,但不允许我安装它

在Windows 10上无法使用.Net Core 3或.Net Framework访问文件

无法在Windows 8(Surface Pro)错误0x800f0906上安装.net Framework 3.5,没有可用的安装媒体

Ubuntu安装在损坏的Windows机器上

.Net Framework 4安装失败

在Windows 10上安装PyPotrace

在 Windows 10 上安装 pip

在Windows 10上安装Gulp

在Windows 10上安装cusignal

在Windows 10上安装Npcap

在Windows 10上安装Bash