How to install ASP.NET 4.5 on Windows 8 and Windows Server 2012

Article ID: 2736284 - View products that this article applies to.
Expand all | Collapse all

Symptoms


In previous versions of Microsoft Windows running Internet Information Services (IIS), the aspnet_regiis -I command could be used to install the ASP.NET feature. Starting in Windows 8, the following problems may occur when trying to install ASP.NET using aspnet_regiis:

  1. If you run aspnet_regiis -I to install ASP.NET 4.5 on IIS8, an error message similar to the following will be displayed:

    This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771.

  2. If you have an application that uses setup projects to install an application on IIS, the installation will fail to enable ASP.NET 4.5 and the application may fail to install.
  3. If you install an application on Windows 8 that attempts to install ASP.NET 4.5 using aspnet_regiis -I, the application will fail to enable ASP.NET 4.5.

Cause

The Aspnet_regiis.exe utility is no longer used for installing and uninstalling ASP.NET 4.5 on Windows 8. ASP.NET 4.5 is now a Windows component and can be installed and uninstalled just like any other Windows component.


Resolution

To install or uninstall ASP.NET 4.5 on Windows 8 or Windows Server 2012, use one of the following options:
  • Run the following command from an administrative command prompt: dism /online /enable-feature /featurename:IIS-ASPNET45
  • For Windows 8 client computers, turn on "IIS-ASPNET45" in "Turn Windows Features On/Off" under "Internet Information Services-> World Wide Web Services -> Application Development Features -> ASP.NET 4.5".
  • For Windows Server 2012 computers, enable "IIS-ASPNET45" using Server Manager, under "Web Server (IIS) -> Web Server ->Application Development -> ASP.NET 4.5".
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2736284 - Last Review: October 16, 2012 - Revision: 3.0
Applies to
  • Microsoft ASP.NET 4.5, when used with:
    • Windows 8
Keywords: 
KB2736284

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com