Hello fellas! This problem usually occurs because the Windows 10 disk image has changed due to corruption or due to operating system custom modification (in my case). It could also be due to system and user access permission issues. To check after ''take ownership'' right click the parent folder then select ''properties'' then ''security. There you can see whether the system, user, administrator has or has not obtained full read, execute, or modify access permissions. Good luck and best wishes. This method can also be done on the installation of programs other than .Net framework and .Net SDK.
Sorry, cant provide external link for download because youtube just sensitive nowadays
These are the commands, you have to enter line by line.
Open Start, type: CMD
Right click CMD
Click Run as administrator
Type in at the prompt OR Copy and Paste these one at a time : (Hit enter after each)
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth
sfc /SCANNOW
My Laptop spec:
Revi OS based windows 10 64 Bit
related problem
An error occurred while attempting to create the directory: C:\ProgramData\Microsoft\Windows
An error occurred while attempting to create the directory: C:\ProgramData\Microsoft\NetFramework