I was trying to test our products to make sure that they are compatible with Windows Server 2016. And during some testing, I mistakenly thought that I can simply "downgrade" .NET framework from 4.6 to 4. So I removed .NET 4.6 from Roles and from IIS.
Now, I can't install it back using installer (because its part of OS so it is asking me to enable it from role & features). And I can't start server manager (to install role & features) because it needs .Net 4 at minimum.
My problem:On Windows Server 2016, the .NET Framework 4.6 had been inadvertently uninstalled from my system while trying to fix some issues with IIS. It was removed using the Server Manager > Remove Roles and Features.
As a result, the Power Shell, Server Manager, and Event Viewer were no longer working. So I downloaded and installed the latest offline version of the .NET Framework 4.7 from Microsoft using the installer. However, it did not fix the problem when installed by clicking on the installer.
SolutionTo fix the problem, I had to install it from the command line using the "/all" switch. I unzipped the installer to a folder and here is the command that I used to install it. In the last argument in quotes is the path to the installer, which will need to be modified based on where you have the installer unzipped:
@Yoann same issue here. Clean install of Windows Server 2019 latest build, install .NET Framework offline installer 4.8, reboot and boom. Many native control panels, like Server Manager, requesting some 4.0.... version of .NET framework instead, failing to load.
I had the same issue and received zero help or support from Microsoft. Dell support googled and read back to me everything I had googled and tried already. Importing the above registry information fixed it without a reboot.
@DavidSherrill This is the exact fix! For us, our RMM tool stopped working on a server 2019 standard server. It's services wouldn't start. Event Viewer complained about .net. Also server manager wouldn't open with the exact message you mentioned. Applying this fixed it all. thanks!!
YOU ARE AN ABSOLUTE LEGEND! THANK YOU! THIS IS THE ONLY SOLUTION THAT WORKED! Every other solution I've googled of this problem has been some variation of "turn net framework on/off in the "turn windows features on or off" app" or "reinstall the newest version of .net" or "did you try restarting your computer?" (OF COURSE I TRIED RESTARTING MY COMPUTER!! DO THEY THINK I'M AN INFANT??)
Please excuse my novice status displayed in this question, but does one simply copy/paste the text in your registry update file, and does the resulting text file require the line number entries as displayed in your post?
You can install .NET Framework 4.8.1 from our .NET Framework Download site. For building applications targeting .NET Framework 4.8.1, you can download the NET Framework 4.8.1 Developer Pack. If you just want the runtime, you can use either:
.NET Framework 4.8.1 includes native support for the Arm64 architecture (Windows 11+) and accessibility improvements as well as other improvements. You can see the complete list of improvements in the .NET Framework 4.8.1 release notes.
.NET Framework 4.8.1 adds native Arm64 support to the .NET Framework family. So, your investments in the vast ecosystem of .NET Framework apps and libraries can now leverage the benefits of running workloads natively on Arm64 for better performance when compared to running x64 code emulated on Arm64.
In this release, both Windows Forms and WPF have made improvements to the handling of tooltips to enable them to be more accessible. In both cases, tooltips now comply with the guidelines setforth in the WCAG2.1 content on Hover or Focus guidance. The requirements for tooltips require the following:
In WinForms, this support is only available on Windows 11 or higher operating system. WinForms is a thin managed wrapper around the Windows API, and the new tooltip behavior only became available in Windows 11. WPF has no operating system version dependencies for their accessible tooltips.
WPF had implemented most of the requirements for WCAG2.1 compliant tooltips in .NET Framework 4.8. In this release WPF improved the experience by ensuring that a tooltip in the current window can easily be dismissed by using the ESC key, the CTRL key (by itself), or by the combination Ctrl+Shift+F10. The scope of the Escape key was reduced in this release to apply only to the current window, when previously it would have been any open tooltip in the application.
Did the system requirements change? In this blog post it lists Windows Server 2022 as the only supported server OS. But .NET 4.8 supports Windows Server 1803+, Server 2019 and Server 2022. Did a patch release of 4.8 just drop support for an entire family of server products?
.NET Framework 4.8.1 is also available on Windows 10 versions (20H2+) and Server 2022+ for x64 based devices. We realize that some customers need to stay on older OS versions for longer, so we plan to continue to support 4.8 on those OS versions for as long as the OS is in support. This means you can stay on 4.8 with the confidence that you will be fully supported with security, reliability, and compatibility fixes on 4.8 just like you would with 4.8.1.
If you have features that require OS-level support then do like you recommend everyone else do: check for OS support or break it into its own set of pieces that are independent of the core. This is going to cause so much confusion to people who, for security reasons, follow strict guidelines for upgrading to the latest patch of all software they run.
Tara Overfield said above that We realize that some customers need to stay on older OS versions for longer, so we plan to continue to support 4.8 on those OS versions for as long as the OS is in support. This means you can stay on 4.8 with the confidence that you will be fully supported with security, reliability, and compatibility fixes on 4.8 just like you would with 4.8.1.
So you can safely stay on .NET 4.8 for broader reach.
I think there may be a targeting issue. If you distribute a .NET Framework app, you can either target 4.8 (no ARM64), 4.8.1 (no older Windows versions, including supported Windows versions) or try to build/distribute for both.
The fact that I read earlier that Microsoft was going to upgrade the WebForms Visual Designer combined with this new version of the .NET Framework makes it appear that many developers and organizations are still working with the original frameworks and intend to stay with them.
However, I have worked with quite a lot in the original .NET Frameworks, including a lot of WebForms development. I have also tinkered with WCF, which I found rather easy to use compared to the projects did with the pure Remoting API. However, the feature I liked about remoting is that it a binary transfer protocol, which made it nearly impossible to breach. WCF has this as well, which if I go through with plans to build a client-server application based on my current, released application, I will probably use.
With .NET Core 5.0 and 6.0 now available I can see where Microsoft is starting to move their technologies and I can understand their reasons for doing so as .NET Core is being designed to be smaller and more modular.
However, throwing out WebForms and WCF was somewhat of a deal-breaker for me. To me, WebForms has always been the zenith of web development, which has been replaced with a a far more complex and fractured development environment with ASP.NET MVC and now ASP.NET Core. True, there have been issues with WebForms but I believe that over time all of them could have been resolved.
A former Silicon Valley engineer who left the US to live in New Zealnd, and who I corresponded with for a short time, wrote a book that demonstrated how to make WebForms applications run like greased lightening. Aside from the proper development paradigms to be used, the book was mostly oriented towards the deployment and hardware configurations, which even today many organizations ignore.
ASP.NET MVC came into vogue because it was believed that high performance web applications could be developed simply base on quality source code. This was never true and hardware and network engineers in the 1990s new at this time the fallacy of relying simply on good source code to produce high performance applications.
Microsoft started development on the .NET Framework in the late 1990s originally under the name of Next Generation Windows Services (NGWS). By late 2001 the first beta versions of .NET Framework 1.0 were released.[1] The first version of .NET Framework was released on 13 February 2002, bringing managed code to Windows NT 4.0, 98, 2000, ME and XP.
Since the first version, Microsoft has released nine more upgrades for .NET Framework, seven of which have been released along with a new version of Visual Studio. Two of these upgrades, .NET Framework 2.0 and 4.0, have upgraded Common Language Runtime (CLR). New versions of .NET Framework replace older versions when the CLR version is the same.
The .NET Framework family also includes two versions for mobile or embedded device use. A reduced version of the framework, the .NET Compact Framework, is available on Windows CE platforms, including Windows Mobile devices such as smartphones. Additionally, the .NET Micro Framework is targeted at severely resource-constrained devices.
.NET Framework 4.8 was announced as the final version of .NET Framework, with future work going into the rewritten and cross-platform .NET Core platform (later, simply .NET), which shipped as .NET 5 in November 2020.[2][3] However, .NET Framework 4.8.1 was released in August 2022.[4]
The first version of the .NET Framework was released on 15 January 2002 for Windows 98, ME, NT 4.0, 2000, and XP. Mainstream support for this version ended on 10 July 2007, and extended support ended on 14 July 2009, with the exception of Windows XP Media Center and Tablet PC editions.[14]
c80f0f1006