I will re-quote my previous directions, from an earlier reply above, which worked for me, except below I have replaced KB4495620 with KB4506991, which is a newer .NET update. Please give the below steps a try (after where it says "To resolve the issue"). Hopefully it will work.
________________________________________________________________________________________
https://developercommunity.visualstudio.com/comments/617759/view.html
I can still replicate this issue on Windows 10 Version 1903, build 18362.175. The fix is not as straightforward as installing the latest Windows Updates.
However, this can be fixed with some extra steps and still keep the device on Version 1903.
To replicate the issue:
DISM /Online /Disable-Feature /FeatureName:NetFx4-AdvSrvs /FeatureName:WCF-Services45 /FeatureName:WCF-TCP-PortSharing45 /FeatureName:NetFx3 /FeatureName:Microsoft-Windows-NetFx3-OC-Package /FeatureName:Microsoft-Windows-NetFx4-US-OC-Package /FeatureName:Microsoft-Windows-Client-EmbeddedExp-Package /FeatureName:Microsoft-Windows-NetFx3-WCF-OC-Package /FeatureName:Microsoft-Windows-NetFx4-WCF-US-OC-PackageRun Optionalfeatures.exe to see the problem list of Optional Features.
To resolve the issue:
Uninstall KB4506991
DISM /Online /Add-Capability /CapabilityName:NetFx3~~~~Install KB4506991 --- This cannot be reinstalled without first adding back the NetFx3~~~~ Capability, as it will indicate that the KB is not applicable.
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Windows-NetFx3-OC-Package /FeatureName:Microsoft-Windows-NetFx4-US-OC-Package /FeatureName:Microsoft-Windows-Client-EmbeddedExp-Package /FeatureName:Microsoft-Windows-NetFx3-WCF-OC-Package /FeatureName:Microsoft-Windows-NetFx4-WCF-US-OC-Package DISM /Online /Enable-Feature /FeatureName:WCF-TCP-PortSharing45