UPDATE:
Since the technique below was for the Windows 8 Consumer Preview, I wanted to share how you can accomplish this in the RTM release of Windows 8, from my reply to a commenter on the post:
For the RTM release, you can use “Turn Windows Features On or Off” in settings (just open the Search charm for settings (Win+W), and type “Turn Windows”, and you should see it at the top of the second column). Once you’ve got that dialog up, the first option available will be “.NET Framework 3.5 (includes .NET 2.0 and 3.0)”. Check the checkbox, click OK, and you should be all set.
Original post follows:
Jaime Rodriguez provides a helpful tip for folks who need to install .NET 3.5 in the Windows 8 Consumer Preview (in addition to Windows Live Writer, I’ve found that the highly-useful utility Mouse without Borders also requires .NET 3.5, so I’ve used this technique on a couple of occasions):
I was installing Live writer and got a prompt to install the .NET Framework 3.5, I agreed to do that and got a “following feature could not be installed. Error: 0x800F0906.
Fortunately, I still had the ISO from when I installed consumer preview , so I used the local sources.
If you see the error above, try this from an elevated command prompt.dism.exe /online /enable-feature /featurename:NetFX3 /Source:h:\sources\sxs
where “h” is the drive where you have your win8 installation files (or where the iso is mounted, replace the path appropriately ).Happy Windows 8 coding!
Comments
Comment by frederic on 2012-03-15 13:15:00 +0000
Thanks a lot, this worked for me.
Comment by devhammer on 2012-03-15 14:37:00 +0000
Great! Glad to hear it helped.
Comment by bills on 2012-04-04 14:02:00 +0000
i do this command but it shows Error: 87
The online/enable-feature/featurename is unknown
what can i do?
Comment by devhammer on 2012-04-04 21:25:00 +0000
I would check for two things…one, make sure you’re running the command from an admin command prompt. Two, double-check for typos.
Comment by mehdi on 2012-08-31 22:12:00 +0000
it shows an error about source and my source link is right !and i tested it with win 7 dvd and win 8 dvd!
now what can i do? i can not install it by Internet too!
Comment by devhammer on 2012-09-01 12:54:00 +0000
Keep in mind that the solution in this post was targeted at Windows 8 Consumer Preview, which was a pre-release version of the OS. For the RTM release, you can use “Turn Windows Features On or Off” in settings (just open the Search charm for settings (Win+W), and type “Turn Windows”, and you should see it at the top of the second column). Once you’ve got that dialog up, the first option available will be “.NET Framework 3.5 (includes .NET 2.0 and 3.0)”. Check the checkbox, click OK, and you should be all set.