Thursday 4 April 2013

How to Install the .NET Framework 3.5 on Windows 8


How to Install the .NET Framework 3.5 on Windows 8

The .NET Framework 3.5 is not automatically installed with Windows 8. To run apps that require the .NET Framework 3.5 on Windows 8, you must enable version 3.5 on your computer. There are two ways you can do this: by installing or running an app that requires the .NET Framework 3.5 (that is, by installing the .NET Framework 3.5 on demand), or by enabling the .NET Framework 3.5 in Control Panel. Both options require an Internet connection.

Important notes:

  • Use the .NET Framework 3.5 for apps built for versions 2.0 and 3.0 as well as 3.5.
  • Installing a Windows language pack on Windows 8 before installing the .NET Framework 3.5 will cause the .NET Framework 3.5 installation to fail. Install the .NET Framework 3.5 before installing any Windows language packs.
  • Windows CardSpace is not available with the .NET Framework 3.5 on Windows 8.

Installing the .NET Framework 3.5 on Demand
If an app requires the .NET Framework 3.5, but doesn't find that version enabled on your computer, it displays the following message box, either during installation, or when you run the app for the first time. In the message box, choose Install this feature to enable the .NET Framework 3.5. This option requires an Internet connection.
Prompt for installing the .NET Framework 3.5 on demand
Prompt for installing the .NET Framework 3.5 on demand

Enabling the .NET Framework 3.5 in Control Panel
You can also enable the .NET Framework 3.5 yourself through Control Panel. In Control Panel, choose Programs and Features, choose Turn Windows features on or off, and then select the.NET Framework 3.5 (includes .NET 2.0 and 3.0) check box. This option requires an Internet connection. You do not need to select the child items for Windows Communication Foundation (WCF) HTTP activation unless you are a developer who requires WCF script and handler mapping functionality.
Turning Windows features on or off in Control Panel
Troubleshooting
If installing the .NET Framework 3.5 on demand or enabling it in Control Panel fails, you may get one of the following error messages:
  • 0x800f0906: “Windows couldn't connect to the Internet to download necessary files. Make sure that you're connected to the Internet, and click Retry to try again.”
  • 0x800F081F: “The changes could not be completed. Please reboot your computer and try again.”

These messages may be displayed for the following reasons:

  • Your computer is not connected to the Internet. Please connect, and then retry the operation.

If you cannot connect to the Internet, you can enable the .NET Framework 3.5 by using the Deployment Image Servicing and Management (DISM) command-line tool and specifying the installation media (ISO image or DVD) you installed Windows 8 from.

    1.In Windows 8 or Windows Server 2012, open a Command Prompt window with administrative credentials (that is, choose Run as administrator).

    2.To install the .NET Framework 3.5 from installation media located in the D:\sources\sxsdirectory, use the following command:

    DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs


where:

  • /Online targets the operating system you're running (instead of an offline Windows image).
  • /Enable-Feature /FeatureName:NetFx3 specifies that you want to enable the .NET Framework 3.5.
  • /All enables all parent features of the .NET Framework 3.5.
  • /LimitAccess prevents DISM from contacting Windows Update.
  • /Source specifies the location of the files needed to restore the feature (in this example, the D:\sources\sxs directory).


If these instructions do not correct the problem, download the paper Microsoft .NET Framework 3.5 Deployment Considerations from the Windows Dev Center for more extensive troubleshooting information.

0 comments:

Post a Comment