.NET 3.5 installation comes up with Error 0x800F0906, then 0x800F0081F using dism

I've recently tried installing .NET 3.5 for an application on Windows 8.1. I used the OS's popup thing to download/install .NET 3.5 and always get error code 0x800F0906.

Upon further research, I found I would have to pop in my Windows 8 CD and install it with this command, where "E:\" is where my CD is mounted:

Dism /online /enable-feature /featurename:NetFx3 /All /Source:E:\sources\sxs /LimitAccess

This and any derivative of it (e.g., removing /LimitAccess) has not worked for me and has either given me the same error code (0x800F0906) or a different one, 0x800F0081F. I've even copied the sxs folder to my hard drive, just in case something was going on with the CD Drive, only to have the same results. In that case, I used this command line:

Dism /online /enable-feature /featurename:NetFx3 /All /Source:C:\dotnet35 /LimitAccess

I find this surreal because in both cases, the files are indeed there but the program thinks it's not. Here's the CBS.log file.

Any ideas on how to fix this? Any help is very appreciated :)

EDIT: I now have a proper dism.log file, I'm not sure what happened to the last one or why it did that. Here's the link to the new log file. It's interesting to note that it doesn't recognize some of the commands in the script such as "featurename" or "source".


I had the same problem and solved it as follows: I noticed that two recent Windows updates refer to .NET Framework 3.5. I uninstalled them both and then was able to install .NET Framework 3.5 from Control Panel.

I'm not sure if was necessary to uninstall both updates. They are KB2966826 and KB2966828.