无法安装net framework 3.5 的解决方法

文章原至:http://softbbs.zol.com.cn/1/20_4713.html


.NET Framework 4.5 包含在 Windows 8 中,并随操作系统安装在您的计算机上。 但是,.NET Framework 3.5 不随着 Windows 8 一起自动安装。 若要在 Windows 8 上运行需要 .NET Framework 3.5 的应用程序,您必须在您的计算机上的启用版本 3.5。 有两种您可以执行此操作的方法:通过安装或运行需要 .NET Framework 3.5 的应用程序(即,通过在需要时安装 .NET Framework 3.5),或者通过启用控制面板中的 .NET Framework 3.5。 两个选项需要 Internet 连接。

重要说明:

  • 将 .NET Framework 3.5 用于为版本 2.0、3.0 以及 3.5生成的应用程序。

  • 在尚未安装 .NET Framework 3.5 的 Windows 8 上安装 Windows 语言包,会导致 .NET Framework 3.5 安装失败。 在安装任何 Windows 语言包之前,请安装 .NET Framework 3.5。

  • Windows CardSpace 不再随 Windows 8 上的 .NET Framework 3.5 提供。

手动安装需要的 .NET Framework

如果应用程序需要.NET Framework 3.5,但是没有在您的计算机上找到启用的版本,则它在安装时或在您首次运行显该应用程序时将显示如下消息框。 <span id="mt12" class="sentence" data-guid="a24d6113d541ae3547840b6a70800e3d" data-source="In the message box, choose <span class=" label"="">Install this feature to enable the .NET Framework 3.5." xml:space="preserve">在消息框中,选择“安装此功能”可以启用 .NET Framework 3.5。 此选项需要 Internet 连接。

提示按需安装 .NET Framework 3.5
Windows 8 上的“3.5 安装”对话框
在控制面板中启用 .NET Framework 3.5

您还可以通过“控制面板”启用 .NET Framework 3.5。 <span id="mt16" class="sentence" data-guid="0f47baee54138ae517afa7212ed7cc83" data-source="In Control Panel, choose <span class=" label"="">Programs and Features, choose Turn Windows features on or off, and then select the Microsoft .NET Framework 3.5.1 check box." xml:space="preserve">在“控制面板”中,选择“程序和功能”,再选择“打开或关闭 Windows 功能”,然后选择 Microsoft .NET Framework 3.5.1复选框。 此选项需要 Internet 连接。

在“控制面板”中启用或禁用 Windows 功能
打开/关闭 Windows 功能
疑难解答

如果根据需要安装 .NET Framework 3.5 或者在"控制面板"中启用它失败,则会收到下列错误消息之一:

  • 0x800f0906:“Windows 无法连接到 Internet 以下载必要的文件。 确保已连接到 Internet,然后单击“重试”以便再试。

  • 0x800F081F:“无法完成此更改。 请重新启动您的计算机,然后重试。

由于下列原因可能显示这些消息可能:

  • 您的计算机未连接到 Internet。 请连接,然后重试该操作。

    如果无法连接到 Internet,则可以通过使用部署映像服务和管理 (DISM) 命令行工具并指定从中安装 Windows 8 的安装媒体(ISO 映像或 DVD),启用 .NET framework 3.5。

    1. <span id="mt28" class="sentence" data-guid="1ac7e7ab5fc8f5f46f30452678e781d6" data-source="In Windows 8 or Windows Server 2012, open a Command Prompt window with administrative credentials (that is, choose <span class=" label"="">Run as administrator)." xml:space="preserve">在 Windows 8 或 Windows Server 2012 中,打开具有管理凭据的“命令提示符”窗口(即选择以管理员身份运行)。

    2. 要从位于 D:\sources\sxs 的安装媒体安装 .NET framework 3.5,请使用以下命令:

      DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs

      其中:

      • <span id="mt31" class="sentence" data-guid="4b307eb4902a15582ec0f20849a805f4" data-source="<span class=" code"="">/Online targets the operating system you're running (instead of an offline Windows image)." xml:space="preserve">/Online 面向您正在运行的操作系统(而不是脱机 Windows 图像)。

      • <span id="mt32" class="sentence" data-guid="a7a530fd7685b84f22fe2ed1eb30d00a" data-source="<span class=" code"="">/Enable-Feature /FeatureName:NetFx3 specifies that you want to enable the .NET Framework 3.5." xml:space="preserve">/Enable-Feature /FeatureName:NetFx3 指定要启用的 .NET framework 3.5。

      • <span id="mt33" class="sentence" data-guid="58a5709c355a47d3806e324537636861" data-source="<span class=" code"="">/All enables all parent features of the .NET Framework 3.5." xml:space="preserve">/All 启用 .NET framework 3.5 的所有父功能。

      • <span id="mt34" class="sentence" data-guid="e52149c1b6179def3b4c68ce8e52fedf" data-source="<span class=" code"="">/LimitAccess prevents DISM from contacting Windows Update." xml:space="preserve">/LimitAccess 防止 DISM 与 Windows Update 连接。

      • <span id="mt35" class="sentence" data-guid="99ce67527365838c724b1d1de6a0cd01" data-source="<span class=" code"="">/Source specifies the locetion of the files needed to restore the feature (in this example, the D:\sources\sxs directory)." xml:space="preserve">/Source 指定需要还原功能的文件位置(在本示例中,D:\sources\sxs directory)。

      <span id="mt36" class="sentence" data-guid="5d21e6241bcbe262101bc4a84410f1ad" data-source="For more information about DISM parameters and options, see <span class=" mtpstagouterhtml"="">How to Enable or Disable Windows Features" xml:space="preserve">有关 DISM 参数和选项的更多信息,请参见如何启用或禁用 Windows 功能

  • 正在使用本地源,但是,网络位置不可访问或不具有适当的内容。 从前面所述的项目符号的内容中的安装媒体安装 .NET Framework 3.5。

  • 您的管理员已配置您的计算机使用 Windows Server Update Services (WSUS) 执行服务,而非使用 Windows Update。 请要求您的管理员启用使用 Windows Update(而非 WSUS)的策略。


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值