If you try to install .NET Framework 3.5 on Windows 8.1 and download method fails, Microsoft suggest an Offline installation method (http://support.microsoft.com/kb/2785188) by entering the following command at an elevated command prompt.
Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:E:\sources\sxs /LimitAccess
Unfortunately, this may fail with the following output.