【问题标题】:.NET framework error x800f081f.NET 框架错误 x800f081f
【发布时间】:2015-12-21 01:41:42
【问题描述】:

我的电脑上安装了 Windows 8.1 64 位,当我安装 .net 3.5 时显示此错误

    Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required t
o restore the feature. For more information on specifying a source location, see
 http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

我在网上找到了各种解决方案,告诉我卸载一些更新,但我的系统上没有安装任何这些更新。

PS:文件没有损坏,因为我通过在另一个系统上安装 .net 进行了检查。

【问题讨论】:

  • 我修改了组策略,还是一样的错误
  • 使用提供的 DISM 命令
  • 这是我使用 DISM 命令时的错误
  • 将文件夹 C:\windows\logs\CBS 和 C:\windows\logs\DISM 复制到桌面,将它们压缩为 1 个 zip,上传 zip (Onedrive),创建共享链接并粘贴到这里。

标签: .net windows windows-8.1 failed-installation


【解决方案1】:

您需要将其指向安装媒体上的 Sources\sxs 文件夹。来自another question的Powershell示例:

Enable-WindowsOptionalFeature -online -FeatureName NetFx3 -Source e:\Sources\sxs

在最后一个命令中 -Source e:\Sources\sxs 仅在该功能需要引用源文件的安装介质时才需要(通常用于修复错误:0x800f081f 找不到源文件)。 .NET Framework 3.5 版似乎是唯一需要客户端操作系统的功能,但服务器操作系统上还有许多其他功能需要参考安装媒体的源代码。

【讨论】:

    【解决方案2】:

    网络上有很多解决方案,比如 .net framework 3.5 的独立安装程序。我已经尝试了所有但对我没有任何帮助。我最终解决问题的方法是使用 Windows CD,并在推荐栏中运行推荐。

    Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:E:\sources\sxs /LimitAccess

    其中 E: 是 CD 的路径,可以是其他用户的其他驱动器。这几乎不需要 5 分钟,完成后你去检查你会发现它启用的功能。

    【讨论】:

      【解决方案3】:

      嗯,我曾尝试使用 Windows 10 并得到同样的错误。我的解决方法是使用 VirtualBox,创建一个 Windows 7 VM,并在那里安装任何使用 Net 3.5 的应用程序。您也可以使用 Windows 7 双启动现有计算机。使用 Windows 8(可能)也更好。

      【讨论】:

        【解决方案4】:

        以下步骤可能有助于在 Windows 服务器上安装 Windows 更新和功能(Net 3.5):

        1. Type Win+R-> type gpedit.msc -> Administrative Templates -> System
           ->  Specify settings for optional component installation and component 
           repair -> 
           Enabled and mark Download repair content(WSUS)
        2. Configure Automatic Updates : Run regedit.exe and go to 
           HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate->AU. 
           Change the value of UseWUServer to 0.
        3. On command prompt run Netsh: netsh.exe and  setting proxy server: 
            winhttp set proxy proxyservername:portnumber
        4. Open command prompt. Stop and then start Windows update:     
            net stop "Windows Update"   
            net start "Windows Update"
        

        Reference for setting proxy server

        【讨论】:

          猜你喜欢
          • 2015-04-19
          • 2013-08-03
          • 2010-12-26
          • 1970-01-01
          • 2011-03-06
          • 2019-10-08
          • 1970-01-01
          • 1970-01-01
          • 2010-11-22
          相关资源
          最近更新 更多