Hello All,
I ran into this problem as well when trying to install the SUP Role. I see the work around. After coming across this blog about this topic, i dug deep to understand the problem and what the work around works and is needed.
Answer:
The reason we get this error: Failed to Register …with .Net Fx 4.0 is because when enabling the Server Feature .Net 4.5 Framework, the install process provides an option to use an alternative source for fetching the files to install .Net. When you skip this option, that’s when you can potentially get the failed to register .Net 4.0 and 2.0. 2.0 gets installed with 4.0 is selected for installation.
So, if you ensure to use the alternative option to install .Net, this issue won’t happen.
The workaround I decided to use was to remove the .net 4.0 feature, Reboot, then reinstall .net 4.0 using the alternative option.
I then attempt to push the SUP Role out again, and it was successful.