.NET 框架错误 x800f081f
.NET framework error x800f081f
我的 PC 上安装了 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 来检查它。
您需要将其指向安装媒体上的 Sources\sxs 文件夹。来自 another question:
的 Powershell 示例
Enable-WindowsOptionalFeature -online -FeatureName NetFx3 -Source e:\Sources\sxs
在最后一个命令中 -Source e:\Sources\sxs 仅当该功能需要为源文件引用安装介质时才需要(通常是为了修复错误:0x800f081f 找不到源文件)。 .NET Framework 版本 3.5 似乎是客户端 OS 唯一需要的功能,但服务器 OS 上还有许多其他功能需要引用安装媒体以获取源代码。
网络上有很多解决方案,例如 .net Framework 3.5 的独立安装程序。我已经尝试了所有但对我没有任何帮助。我最终解决问题的方式是 windows CD,以及 运行 推荐栏中的一个推荐。
Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:E:\sources\sxs /LimitAccess
其中 E: 是 CD 的路径,对于其他用户可以是其他驱动器。这几乎不需要 5 分钟,完成后你去检查你会发现它启用的功能。
嗯,我试过使用 Windows 10 并得到了同样的错误。我的解决方法是使用 VirtualBox,创建一个 Windows 7 VM,然后在其中安装任何使用 Net 3.5 的应用程序。您也可以使用 Windows 7 双启动现有计算机。使用 Windows 8(可能)也更好。
以下步骤可能有助于在 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"
我的 PC 上安装了 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 来检查它。
您需要将其指向安装媒体上的 Sources\sxs 文件夹。来自 another question:
的 Powershell 示例Enable-WindowsOptionalFeature -online -FeatureName NetFx3 -Source e:\Sources\sxs
在最后一个命令中 -Source e:\Sources\sxs 仅当该功能需要为源文件引用安装介质时才需要(通常是为了修复错误:0x800f081f 找不到源文件)。 .NET Framework 版本 3.5 似乎是客户端 OS 唯一需要的功能,但服务器 OS 上还有许多其他功能需要引用安装媒体以获取源代码。
网络上有很多解决方案,例如 .net Framework 3.5 的独立安装程序。我已经尝试了所有但对我没有任何帮助。我最终解决问题的方式是 windows CD,以及 运行 推荐栏中的一个推荐。
Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:E:\sources\sxs /LimitAccess
其中 E: 是 CD 的路径,对于其他用户可以是其他驱动器。这几乎不需要 5 分钟,完成后你去检查你会发现它启用的功能。
嗯,我试过使用 Windows 10 并得到了同样的错误。我的解决方法是使用 VirtualBox,创建一个 Windows 7 VM,然后在其中安装任何使用 Net 3.5 的应用程序。您也可以使用 Windows 7 双启动现有计算机。使用 Windows 8(可能)也更好。
以下步骤可能有助于在 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"