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 (e.g. 4.8) is installed?

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

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

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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.

Method 2

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.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x