Job2 Street

Tuesday, December 10, 2019

NET Framework fails to install













[SOLVED] Windows 10 – .NET Framework fails to install

Tuesday, 24 November 2015

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)
Windows10-DotNetInstallFails1
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)
Windows10-DotNetInstallFails2

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.
  1. In the Windows search box, type cmd
  2. When ‘Command Prompt’ appears, right-click on it and select ‘Run as administrator’
  3. Windows10-DotNetInstallFails3
  4. In the command prompt enter the following command – changing D to the current drive letter for your Windows install USB
  5. Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess
  6. Windows10-DotNetInstallFails4
  7. The install will take a few minutes to complete.
  8. 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 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.
Specify_Settings_Optional_Components_Installation_Repair_Windows_8.png
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.
Contact_Windows_Update_Download_Repair_Content_Instead_WSUS.png
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:
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.
    corrupted-system-files-cmd-1
  • 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:
  1. Launch the Run engine on your Windows 10 device: press the Win+R keyboard keys together.
  2. In the Run box type msconfig and click on OK.msconfig windows 10
  3. From System Configuration switch to Boot tab.
  4. Under Boot options select the Safe mode checkbox and also check Minimal from underneath.
  5. Click OK and Apply.reboot safe mode windows 10
  6. When prompted choose Restart.
  7. Now your device will be automatically restarted into Safe Mode.
  8. 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) (noteklik 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

  1. Open a command prompt with administrator privileges.
  2. 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.
  3. 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
    
  4. 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

  1. 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.
  2. Review the list of features to find the feature that you want to enable, disable, remove, or restore.
  3. 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

  1. 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
    
  2. 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

  1. 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
    
  2. 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

  1. 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
    
  2. 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

  1. 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
    
  2. 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

  1. 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.
  2. Expand the catalog in the Windows Image pane, and then expand Packages.
  3. Expand Foundation, and right-click Microsoft-Windows-Foundation-Package.
  4. Click Add to Answer File.
  5. 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.
  6. Click Tools on the main menu, and then click Validate Answer File.
  7. Correct any errors that appear in the Messages pane, and save the answer file.
  8. 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
    

Configure a Windows Repair Source

*******************

Hi Leendert A. Hartog,
Use this Tech Bench ink and download the iso file again.
http://www.microsoft.com/en-us/software-download/techbench

download ms windows 10. Once the iso is downloaded, mount it. ( Right click at the iso file > click Mount ).
Then open the elevated command prompt ( command prompt (admin) ) > copy & paste this...........
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:H:\sources\install.wim:1 /limitaccess
> press Enter.
NOTE : H is the drive letter where the iso is mounted. If your drive letter is not H, replace H with your drive letter.
Best regards
https://social.technet.microsoft.com/Forums/en-US/4bd0ea63-12bb-4ffe-870c-ccb2e66fe4fa/dism-error-0x800f081f-the-source-files-could-not-be-found?forum=win10itprogeneral
-***********************

Method 1: Performing a Component Cleanup

By using DISM component cleanup switch, you can clean up the image and get everything running properly again. Here’s how to get it done.
  1. Open the Start Menu, type cmd, right-click and Run as Administrator.
  2. In the elevated command prompt, type the following commands in the same order:
    dism.exe /online /Cleanup-Image /StartComponentCleanup
    sfc /scannow
  1. Wait for these commands run and when they’re done, run:Dism /Online /Cleanup-Image /RestoreHealth
At this point, Dism /Online /Cleanup-Image /RestoreHealth should work again.

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

Method 2: Getting Source from Windows Image

With a fresh Windows 10 image, you can run the DISM command with a location that contains the files it needs to attempt the image repair.
  1. Since MS removed tech bench iso’s there aren’t much sources available. You can however get image dumps from here.
  2. Once the Windows 10 ISO has been downloaded, you need to mount it on your computer in order to have your computer extract it and then be able to access it. To mount an ISO file in Windows, go here and follow the steps pertaining to the version of Windows that you are using.
  3. Open the Start Menu, type cmd, right-click and Run as Administrator.
  4. In the elevated command prompt, type the following command, replacing X with the directory where the Windows 10 ISO file you downloaded earlier is mounted:
    DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess
  5. Wait for the command to be executed, and DISM should be successful at repairing your Windows image this time.
Please make sure that you download the Windows 10 ISO file from the Tech Bench dump link provided above as doing so will result in you ending up with an ISO containing the Install.wim file, which is what you need. Downloading a Windows 10 ISO from the Microsoft Media Creation Tool will result in you ending up with an ISO containing an Install.esd file, which is pretty much useless for the purposes of fixing error 0x800f081f.

Method 3: Upgrading Windows

Though this is a long process, it solves the problem by reinstalling the entire Windows core with the latest image from Microsoft, hence fixing the issue. This tool will work on Windows 7, Windows 8.1, or Windows 10.
  1. Get the Windows 10 Media Creation Tool from here.
  2. Run the executable from your PC. You need to run this as an Administrator.
  3. Accept the license terms and select Upgrade this PC now on the What do you want to do? and then click Next.
  4. The tool will start downloading and then installing Windows 10. Follow the prompts carefully to complete the upgrade.
  5. Upon completion, you should have a fresh copy of Windows with your file still intact. There’s no need to run Dism /Online /Cleanup-Image /RestoreHealth but you can run it to see if your issue has been solved.

TIP: If none of the Methods have resolved the issue for you, we recommend using Reimage Repair Tool which can scan the repositories to replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. Reimage will also optimize your system for maximum performance. You can download Reimage by Clicking Here

No comments:

Post a Comment

K-Play

kPlaylist - get your music online

The player will show in this paragraph

2 3

IkimFM

speaker music speaker