[SOLVED] Windows 10 – .NET Framework fails to install
Problem
Windows 10 prompts that the .NET Framework needs to be installed.
An app on your PC needs the following Windows feature: .NET Framework 3.5 (includes .NET 2.0 and 3.0)
But when you attempt the install using the ‘Download and install this feature’ the install fails.
This following feature couldn't be installed: .NET Framework 3.5 (includes .NET 2.0 and 3.0)
Solution
To fix this problem you will need to install the .NET Framework offline, from your Windows 10 install media.
To be able to do this you will first need a Windows 10 install USB. If you do not already have this see Windows 10 – How to create a install USB.
- In the Windows search box, type cmd
- When ‘Command Prompt’ appears, right-click on it and select ‘Run as administrator’
- In the command prompt enter the following command – changing D to the current drive letter for your Windows install USB
Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess
- The install will take a few minutes to complete.
- Once it reads ‘The operation completed successfully.’ you can close the command prompt window.
***********************
Thankfully, this issue is entirely fixable, and there are a couple of ways you can resolve this issue and successfully install .NET Framework 3.5 on a Windows 10 computer. First and foremost, before resorting to any drastic measures, you can repair your computer’s component store and then try installing .NET Framework 3.5 all over again. To repair your computer’s component store, you need to:
Right-click on the Start Menu button to open the WinX Menu
Click on Command Prompt (Admin) in the WinX Menu.
Type the following into the elevated Command Prompt and press Enter:
Dism /Online /Cleanup-Image /StartComponentCleanup
Once the previous command has been successfully executed, type the following into the elevated Command Prompt and then press Enter:
Dism /Online /Cleanup-Image /RestoreHealth
PRO TIP: If the issue is with your computer or a laptop/notebook you should try using Reimage Plus which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Reimage by Clicking Here
As soon as both commands have been executed, close the elevated Command Prompt.
Try installing .NET Framework once more and see whether or not the issue still persists.
If repairing your computer’s component store doesn’t do the trick, don’t worry as you can still fix this problem – you can do so by installing .NET Framework 3.5 on your computer through a Windows 10 installation media. In order to do so, you are going to have to:
Insert a Windows 10 installation media into your computer or mount a Windows 10 ISO onto a virtual drive in your computer. Make sure that the Windows 10 installation media or ISO you use matches the version of Windows 10 that you have on your computer, meaning that if your computer is running on a 32-bit version of Windows 10, be sure to use an installation media or ISO of the same kind.
Launch an elevated Command Prompt by right-clicking on the Start Menu to open the WinX Menu and then clicking on Command Prompt (Admin).
Type the following command into the elevated Command Prompt, replacing the X in the command-line with the drive letter assigned to the drive on your computer that is housing the Windows 10 installation media or ISO that you want to use to fix this problem:
dism /online /enable-feature /featurename:NetFx3 /Source:X:\sources\sxs /all /LimitAccess
Today in this article, we are going to share the solution given by our reader Patrik so that all Windows 8 and later users can install .NET Framework 3.5 without any problem.
This solution should work for all devices whether its a Desktop PC, laptop or Surface tablet running on Windows 8, Windows 8.1 or Windows 10 operating systems.
If you are also facing problems while installing .NET Framework 3.5 in Windows 8 or later, check out following method to fix the issue:
1. Type gpedit.msc in RUN or Start search box and press Enter. It'll open Group Policy Editor.
2. Now go to:
Computer Configuration -> Administrative Templates -> System
3. In right-side pane, look for "Specify settings for optional component installation and component repair" option.
4. The option would be set to Not Configured. Double-click on it, set it to Enabled and enable "Contact Windows Update directly to download repair content instead of Windows Server Update Services (WSUS)" option.
That's it. Now try to install .NET Framework 3.5 again using Control Panel -> Programs and Features or by using DISM command and now you'll not face any problem
****************************
System File Checker (SFC) is a utility in Microsoft Windows that allows users to scan for and restore corruptions in Windows system files. This utility is available on all versions of Windows OS and is located in C:WindowsSystem32 folder.
This article will describe the following issues related to SFC tool:
- How to run the system file checker tool
- How to use SFC scannow in Safe Mode
- How to fix most common SFC errors
The time required for SFC command scannow to repair important windows files is usually from 5 to 15 minutes.
How to run SFC scannow in Windows 10
The SFC might resolve many system errors, including blue screen issues. This is how you can run an SFC scan in Windows.
- Press the Windows key + X to open the main menu.
- Click Command Prompt (Admin) to open the Command Prompt as an administrator.
- When Command Prompt opens, enter sfc /scannow and press Enter.
- The repair process will now start. Don’t close Command Prompt or interrupt the repair process. The repair process can take a while, so wait patiently while it completes.
- When the SFC scan is complete, the Command Prompt might state, “Windows Resource Protection found corrupt files and successfully repaired them.” If that’s the case, restart Windows.
How to use SFC scannow in Safe Mode
When you cannot complete the SFC scan normally, you should initiate the same process from Safe Mode.
When the Windows 10 OS runs in Safe Mode all third-party apps, and the processes associated with such software will be stopped or deactivated.
Thus, if the SFC error was somehow related with a third party software, now you will be able to successfully perform the system scan.
Here is how you can reboot your device into Safe Mode right away:
- Launch the Run engine on your Windows 10 device: press the Win+R keyboard keys together.
- In the Run box type msconfig and click on OK.msconfig windows 10
- From System Configuration switch to Boot tab.
- Under Boot options select the Safe mode checkbox and also check Minimal from underneath.
- Click OK and Apply.reboot safe mode windows 10
- When prompted choose Restart.
- Now your device will be automatically restarted into Safe Mode.
- From there run the sfc /scannow command.
Most common System File Checker/SFC scannow errors
Although this process can automatically repair the most common Windows soft-related problems, in some situations, SFC itself might experience malfunctions.
Here are some of the most common issues that users reported:
- Sfc /scannow stuck at verification, at beginning system scan – According to users, SFC scan can get stuck at verification or at the beginning of the scan. However, you might be able to fix the problem simply by replacing the corrupted files.
- Sfc /scannow frozen Windows 10 – This is another issue that can appear with the SFC scan. To fix this issue, it’s advised to restore your PC using System Restore and check if that solves the problem.
- Sfc scannow nothing happens – Couple of users reported that nothing happens while using SFC scan on their PC. If that’s the case, try using the DISM scan instead and check if that solves the issue.
- Sfc scannow stops scanning – According to users, sometimes an SFC scan can stop completely on your PC. Fix the problem by checking out this guide.
- Sfc scannow stops you must be an administrator – SFC scan requires administrative privileges in order to run, and if you’re having any issues with SFC, be sure that you’re using Command Prompt as an administrator
- ****************************
Pengguna windows 10 yang ingin menginstall .NET FRAMEWORK 3.5 mungkin mengalami kesulitan karena harus di install secara online. NET Framework 3.5 biasanya menjadi prerequisites dari beberapa aplikasi dan game. termasuk SQL SERVER 2014 juga membutuhkan Net Framework 3.5.
oke mari kita mulai instalasinya.
1. Bismillah
2. Sediakan tool sxs, bisa di download di link berikut ini :
untuk windows 10 32 bit sxs-win-10-32-bit
untuk windows 10 64 bit sxs-win-10-64-bit
3. Setelah di download dan di extract, silakan copy-paste ke drive C
4. Selanjutnya buka Command Prompt (CMD) (note: klik kanan Run as Administrator)
5. tampilan command prompt seperti dibawah ini
6. Ketikkan perintah dism.exe /online /enable-feature /featurename:NetFX3 /Source:C:\sxs /LimitAccess
7. tekan ENTER
8. Tunggu proses sampai selesai seperti berikut ini :
9. Selamat .Net Framework 3.5 telah sukses terinstall
10. Alhamdulillah
************
oke mari kita mulai instalasinya.
1. Bismillah
2. Sediakan tool sxs, bisa di download di link berikut ini :
untuk windows 10 32 bit sxs-win-10-32-bit
untuk windows 10 64 bit sxs-win-10-64-bit
3. Setelah di download dan di extract, silakan copy-paste ke drive C
4. Selanjutnya buka Command Prompt (CMD) (note: klik kanan Run as Administrator)
5. tampilan command prompt seperti dibawah ini
6. Ketikkan perintah dism.exe /online /enable-feature /featurename:NetFX3 /Source:C:\sxs /LimitAccess
7. tekan ENTER
8. Tunggu proses sampai selesai seperti berikut ini :
9. Selamat .Net Framework 3.5 telah sukses terinstall
10. Alhamdulillah
************
Enable or Disable Windows Features Using DISM
The Deployment Image Servicing and Management (DISM) tool is a command-line tool that is used to modify Windows® images. You can use DISM to enable or disable Windows features directly from the command prompt, or by applying an answer file to the image. You can enable or disable Windows features offline on a WIM or VHD file, or online on a running operating system.
To mount an offline image for servicing
- Open a command prompt with administrator privileges.
- To use DISM from an installation of the Windows Assessment and Deployment Kit (Windows ADK), locate the Windows ADK servicing folder and navigate to this directory. By default, DISM is installed at C:\Program Files (x86)\Windows Kits\10.0\Assessment and Deployment Kit\Deployment Tools\ in Windows 10, C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\ in Windows 8.1and C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\ in Windows 8.DISM is available in:
- Windows 10
- Windows 8.1
- Windows 8
- Windows Server 2016 Technical Preview
- Windows Server 2012 R2
- Windows Server 2012
- Windows Preinstallation Environment (WinPE) for Windows 10
- WinPE 5.0
- WinPE 4.0
You can install DISM and other deployment and imaging tools, such as Windows System Image Manager (Windows SIM), on another supported operating system from the Windows ADK. For more information, see DISM Supported Platforms. - Use the
/Get-ImageInfo
option to retrieve the name or index number for the image that you want to modify. An index or name value is required for most operations that specify an image file.For example, at the command prompt type:Dism /Get-ImageInfo /ImageFile:C:\test\images\install.wim
- Mount the offline Windows image. For example, type:
Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Name:"Base Windows Image" /MountDir:C:\test\offline
To find available Windows features in an image
- List all of the features available in the operating system. For example, type:
Dism /online /Get-Features
To service an offline image, specify the location of the mounted image directory. For example, type:Dism /Image:C:\test\offline /Get-Features
You can use>featurelist.txt
to redirect the output of the command to a text file that is named featurelist. - Review the list of features to find the feature that you want to enable, disable, remove, or restore.
- Use
/Get-FeatureInfo
to list information about the specific feature you are interested in. For example, type:Dism /online /Get-FeatureInfo /FeatureName:TFTP
To enable Windows features
- Enable a specific feature in the image. You can use the
/All
argument to enable all of the parent features in the same command. For example, type:Dism /online /Enable-Feature /FeatureName:TFTP /All
To service an offline image, specify the location of the mounted image directory. For example, type:Dism /Image:C:\test\offline /Enable-Feature /FeatureName:TFTP /All
- Optional: Get the status of the feature you have enabled. For example, type:
Dism /online /Get-FeatureInfo /FeatureName:TFTP
If the status is Enble Pending, you must boot the image in order to enable the feature entirely.
To restore removed Windows features
- Enable a specific feature in the image. If you do not specify a source, DISM will look in the default location specified by group policy for the required files needed to enable the feature For more information, see Configure a Windows Repair Source.If the files are not found in the default location, DISM will contact Windows Update (WU) for the required files. You can use the
/LimitAccess
argument to prevent DISM from contacting WU.If you specify multiple/Source
arguments, the files are gathered from the first location where they are found and the rest of the locations are ignored.For example, type:Dism /Online /Enable-Feature /FeatureName:TFTP /Source:Z:\sources\SxS /Source:C:\test\mount\windows /LimitAccess
To service an offline image, specify the location of the mounted image directory. For example, type:Dism /Image:C:\test\offline /Enable-Feature /FeatureName:TFTP /Source:C:\test\mount\windows
- Optional: Get the status of the feature you have enabled. For example, type:
Dism /online /Get-FeatureInfo /FeatureName:TFTP
If the status is EnablePending, you must boot the image in order to enable the feature entirely.
To disable Windows features
- Disable a specific feature in the image. For example, type:
Dism /online /Disable-Feature /FeatureName:TFTP
To service an offline image, specify the location of the mounted image directory. For example, type:Dism /Image:C:\test\offline /Disable-Feature /FeatureName:TFTP
- Optional: Use
DISM /GetFeatureInfo
to get the status of the feature you have disabled. For example, type:Dism /online /Get-FeatureInfo /FeatureName:TFTP
If the status is DisablePending, you must boot the image in order to disable the feature entirely.
To remove Windows features for on-demand installation
- Remove a specific feature in the image without removing the feature's manifest from the image. This option can only be used when servicing Windows 10, Windows 8.1, Windows 8, Windows Server 2016 Technical Preview, Windows Server 2012 R2, or Windows Server 2012. For more information, see Configure a Windows Repair Source.For example, type:
Dism /online /Disable-Feature /FeatureName:TFTP /Remove
To service an offline image, specify the location of the mounted image directory. For example, type:Dism /Image:C:\test\offline /Disable-Feature /FeatureName:TFTP /Remove
- Optional: Use
DISM /GetFeatureInfo
to get the status of the feature you have disabled. For example, type:Dism /online /Get-FeatureInfo /FeatureName:TFTP
The status is Disabled. Beginning with Windows 10, the payload is not removed from Windows client SKUs in order to support push-button reset. The payload is removed from Windows Server SKUs.
To enable or disable Windows features by using DISM and an answer file
- In Windows SIM, open an existing catalog by clicking Select a Windows Image on the File menu and specifying the catalog file type (.clg) in the drop-down list, or create a new catalog by clicking Create Catalog on the Tools menu.
- Expand the catalog in the Windows Image pane, and then expand Packages.
- Expand Foundation, and right-click Microsoft-Windows-Foundation-Package.
- Click Add to Answer File.
- Click Enabled or Disabled next to the features that you intend to enable or disable. Click the arrow to select the opposite choice.You might have to expand an item to see all its children. You must enable the parent if any one of its children are enabled.Note You can't restore or remove a Windows feature for features on demand with an unattended answer file.
- Click Tools on the main menu, and then click Validate Answer File.
- Correct any errors that appear in the Messages pane, and save the answer file.
- At the command prompt, type the following command to apply the unattended answer file to the image.
Dism /online /Apply-Unattend:C:\test\answerfiles\myunattend.xml
To service an offline image, specify the location of the mounted image directory. For example, type:Dism /Image:C:\test\offline /Apply-Unattend:C:\test\answerfiles\myunattend.xml
To commit changes on an offline image
- Commit the changes and unmount the image. For example, type:
Dism /Unmount-Image /MountDir:C:\test\offline /Commit
No comments:
Post a Comment