大网数据广告活动
Web服务器与PHP

Install ASP.NET 4.5 in Windows 8

· 52CE 我爱测

This article explains the problem that you can't install ASP.NET feature by using Aspnet_regiis.exe. It also provides a resolution to install/uninstall ASP.NET in Windows 8 and Windows Server 2012.

This article explains why you can't install or uninstall ASP.NET 4.5 in Microsoft Windows 8 by using the Aspnet_regiis.exe utility, and helps you resolve this problem.

Original product version:   ASP.NET on .NET Framework 4.5.2, Windows 8, Windows Server 2012
Original KB number:   2736284

Symptoms

In previous versions of 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 the Aspnet_regiis.exe utility:

  1. If you run aspnet_regiis -I to install ASP.NET 4.5 on IIS 8, an error message like the following one 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 https://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 in 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 in 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.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 04/03/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。