NET 3.5 install error 50 - Parent features must be enabled before this feature can be enabled -

Stefan K 106 Reputation points
2022-01-04T09:07:27.453+00:00

I refer to this thread which was archived.
The solution was to reboot the PC and run a repair. I am in a company acnd just can't just repair all computers with problems.
I wonder if there is a solution to this issue.
I try to install NET3.5 with:
DISM.exe /Online /Enable-Feature /FeatureName:NetFx3 /source:.\ /limitaccess /norestart

and get an error 50:

Error DISM DISM Package Manager: PID=9500 TID=4356 Parent features must be enabled before this feature can be enabled. "NetFx3" - CPackageManagerCLIHandler::Private_ProcessFeatureChange
Error DISM DISM Package Manager: PID=9500 TID=4356 One or more features could not be enabled. - CPackageManagerCLIHandler::Private_ProcessFeatureChange(hr:0x80070032)
Error DISM DISM Package Manager: PID=9500 TID=4356 Failed while processing command enable-feature. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070032)
2

I wonder which "PARENT FEATURE" is referred to here.

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,223 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
2,027 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2022-01-04T11:13:06.147+00:00

    You need to specify source if you are using limit access. If you have access to the internet you can try this

       DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
    
    0 comments No comments

  2. Limitless Technology 39,851 Reputation points
    2022-01-05T13:56:40.843+00:00

    Hi @Stefan K

    Thank you for your question and reaching out.

    I can understand you are facing issue while installing Dot .NET Framework on Windows 10.

    I will suggest you to try below Methods towards to resolve this issue.

    Method 1:

    Download and run .NET framework repair tools from Microsoft and repair it.
    https://www.microsoft.com/en-us/download/details.aspx?id=30135

    Method 2:

    1.Open the .NET Framework installation files folder > Open Sources folder
    2. Right-click the SXS folder, and then click Properties.
    3. Click Security and make sure that there is a check mark next to Read & Execute. If the check mark isnt there, click the Edit button and turn it on.
    4. Press Windows Key + X
    5. Click Command Prompt (Admin)
    6. In the Command Prompt window, type the following command and press Enter:
    7. dism /online /enable-feature /featurename:netfx3 /all /source:c:\sxs /limitaccess
    8. In the Command Prompt window, type the following command and press Enter:
    9. dism /online /Cleanup-Image /RestoreHealth

    Method 3:
    Run Windows Startup Repair.

    1. Navigate to settings. You can get there by hitting the gear icon on the Start menu.
    2. Click Update & security.
    3. Select Recovery from the menu.
    4. Click Restart Now. The computer will boot to an options menu.
    5. Click Troubleshoot.
    6. Click Advanced Options Then, click Startup Repair Once complete try it again!

    Hope this answers your question :)
    Thank you.
    Prakash

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.