All Products
Search
Document Center

Elastic Compute Service:What do I do if .NET Framework 3.5 or a language pack cannot be installed on a Windows instance?

Last Updated:Mar 04, 2025

By default, Windows Elastic Compute Service (ECS) instances use Windows Server Update Services (WSUS) to obtain updates. This may cause .NET Framework and language pack installation files to be missing. As a result, the system fails to find the installation files or install the language packs. This topic describes how to resolve the issue that you cannot install .NET Framework 3.5 or a language pack.

Important
  • This topic applies to Windows Server 2012 R2 and later versions.

  • If your instance runs Windows Server 2012 R2 and uses an official Windows image released after June 2023, you cannot install .NET Framework 3.5 in the operating system because the image includes a specific security patch. For information about the solution to this issue, see the Windows Server 2012 R2: .NET Framework 3.5 fails to be installed section of the "Known issues of public images" topic.

  • If you want to use the Windows Server 2012 R2 operating system, we recommend that you create ECS instances in the ECS console by using one of the following Windows Server 2012 R2 community images on which .NET Framework 3.5 is installed: win2012r2_9600_x64_dtc_zh-cn_40G_.Net3.5_alibase_20231204.vhd and win2012r2_9600_x64_dtc_en-us_40G_.Net3.5_alibase_20231204.vhd. For information about how to find the image that you need, see Find an image.

Problem description

  • Issue 1: When you install .NET Framework 3.5 on a Windows instance, an error message appears, as shown in the following figure.

    找不到源文件

  • Issue 2: A language pack cannot be installed on a Windows instance.

    When you change the language in Control Panel or search for a language in the Windows Update window, you cannot select or install the language pack that you want.

    无法安装语言包

Cause

The Windows instance uses WSUS as the update source. However, the WSUS server does not provide updates for .NET Framework 3.5 or language packs. The Windows instance cannot obtain the corresponding updates from the WSUS server. As a result, the preceding issues occur because the installation files of .NET Framework and language packs do not exist on the instance.

Solutions

Solution 1: Install .NET Framework 3.5 by using the Cloud Assistant plug-in

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Maintenance & Monitoring > Cloud Assistant.

  3. In the top navigation bar, select the region and resource group to which the resource that you want to manage belongs. 地域

  4. On the ECS Instances tab, find the ECS instance that you want to manage and click Run Command in the Actions column.

  5. In the Command content section, enter the following content and select Immediate execution in the Execution Plan section. If the file that you want to download is large, we recommend that you set the Timeout parameter to more than 6000 seconds. Retain the default settings for other parameters and click Run.

    acs-plugin-manager.exe -e -P Windows_RestoreAndUpdate -p "-ByMedia iso -InstallFeature NetFx3"
  6. You can view the Execution Status column that corresponds to the command on the Command Execution Result tab.

    If Successful is displayed, .NET Framework 3.5 is installed.

Solution 2: Change the update source to install .NET Framework 3.5

  1. Change the update source to Windows Update.

    Use PowerShell

    1. Connect to the Windows ECS instance that you want to manage.

      For more information, see Use Workbench to connect to a Windows instance over RDP.

    2. In the lower-left corner of the desktop, right-click the 开始 icon and select Run. In the Run dialog box, enter powershell and click OK.

    3. Enter powershell.

    4. On the PowerShell interactive interface, run the following commands to configure Windows Update as the update source in the registry:

    Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name UseWUServer -Value 0
    Restart-Service -Name wuauserv

    Configure a group policy

    1. Connect to the Windows ECS instance that you want to manage.

      For more information, see Use Workbench to connect to a Windows instance over RDP.

    2. In the lower-left corner of the desktop, right-click the 开始 icon and select Run. In the Run dialog box, enter gpedit.msc and click OK.

    3. Configure a group policy based on the actual operating system version.

      • If the instance runs Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, or Windows Server 2022, perform the following steps:

        1. In the Local Group Policy Editor window, choose Computer Configuration > Administrative Templates > System > Specify settings for optional component installation and component repair. image

        2. Double-click Specify settings for optional component installation and component repair, select Enabled, select Download fixes and optional features directly from Windows Update instead of Windows Server Update Services (WSUS), and then click OK.image

      • If the instance runs Windows Server 2025, perform the following steps:

        1. In the Local Group Policy Editor window, choose Computer Configuration > Administrative Templates > Windows Components > Windows Update > Manage updates offered from Windows Server Update Service > Specify source service for specific classes of Windows Updates.

        2. Double-click Specify source service for specific classes of Windows Updates, select Enabled, set Feature Updates to Windows Update, and then click OK.image

    4. In the lower-left corner of the desktop, right-click the 开始 icon and select Run. In the Run dialog box, enter gpupdate /force and click OK to forcefully update the local group policies.

  2. Install .NET Framework 3.5.

    Note

    The Windows Server 2012 or Windows Server 2016 operating system has high memory usage. If you install other applications in the operating system, memory usage continues to increase and memory becomes insufficient, which may cause a failure to install .NET Framework. To prevent the issue, we recommend that you increase physical memory. If an I/O optimized instance is used to provide high disk I/O performance, the instance reads data from and writes data to virtual memory faster than non-I/O optimized instances. We recommend that you specify the Windows virtual memory for the I/O optimized instance. For more information, see How do I configure the virtual memory of a Windows instance?

    Use Server Manager

    1. In the lower-left corner of the desktop, click the 开始 icon and then click Server Manager.

    2. In the Server Manager window, click Add roles and features.

    3. Follow the default wizard configurations. In the Features step, select .NET Framework 3.5 Features.

      image

      Follow the wizard to confirm the settings until the installation is complete.

      image

    Run a PowerShell command

    Run one of the following commands:

    • Dism /Online /Enable-Feature /FeatureName:NetFX3 /All 

      image.png

    • Install-WindowsFeature -Name NET-Framework-Features

      image.png

    Important

    If the system reports an error, such as 0x800F0906 or 0x800F081F, as shown in the following figure, fix the error. For information about how to fix the error, see .NET Framework 3.5 installation errors: 0x800F0906, 0x800F081F, 0x800F0907, 0x800F0922.

    image

  3. (Conditionally required) If your Windows environment requires WSUS-based updates, run the following commands to configure WSUS as the update source:

    Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' -Name UseWUServer -Value 1
    Restart-Service -Name wuauserv

References

  • .NET Framework 3.5 is a software development framework provided by Microsoft. It contains the core class libraries and runtime environments that are required for developing and running .NET Framework-based applications. The language packs of .NET Framework 3.5 are add-ons compatible with the framework to support multiple languages. For more information, see Overview of .NET Framework.

  • For information about how to install a version of .NET Framework in other Windows Server versions, see Installation guide.