简体   繁体   中英

ASP.NET 4.8 Feature unavailable in IIS 8.5 (Windows Server 2012 R2)

Windows Server 2012 R2, IIS 8.5, .NET 4.8 is installed (verified via the Registry, see screen-shot).

On my Windows 10 machine, I see the option to select the ASP.NET 4.8 feature from the "Turn Windows Features on or off" dialog. However, in the Add Server Role wizard on Windows 2012 R2, I only see ASP.NET 4.5 option listed. See screen-shot for comparison.

My question: Is that normal for Windows Server 2012 R2 to only show an ASP.NET 4.5 option? Even if a higher version of the .NET Framework (eg 4.8) is installed?

.NET Framework 4.8 已安装

并排功能比较

As Windows Server default installation ships with a specific .NET Framework (4.5 for example), Microsoft hard coded the version names (like .NET Framework 4.5) in certain UI elements, such as Server Manager.

That becomes a critical problem, when you upgrade that to a newer .NET Framework release (such as 4.6), because the installer does not update those hard coded names.

This issue has been well known for years, so your only option is to accept it.

My solution is install visual stuido on IIS host and Change properties to 4.8 Framewoker version ( https://www.grapecity.com/kb/how-to-change-the-.net-framework-version-in-visual-studio )

This solution make my project can run System.IO.Compression.ZipFile. the ref cant run on default 4.5 version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM