You cannot download an msi for .NET Framework 3.5 and install in Windows 8 or Windows 8.1.
What you need to do is:
1. Open your Windows Explorer.
2. Click on Uninstall or change a program.
3. Click on Turn Windows features on or off.
4. Check the .NET Framework 3.5 (includes .NET 2.0 and 3.).