'All applications stop working after uninstall of hosting bundle 2.2.8

I have tried to clean up a bit from old core versions on a server (Windows Server 2012 R2, IIS 8). When I uninstalled the .NET Core Runtime & Hosting Bundles version 2.2.8 (uninstalled with dotnet-core-uninstall) all applications on the server stops working. None of the applications uses Core 2.2, all is Core 3.1 and .Net5.

I have a almost identical server with the same applications and there the applications still works after uninstalling the 2.2.8 Hosting Bundle.

I'm guessing there is something on the server that depends on version 2.2.8, but what?

Anyone who has any ideas?



Solution 1:[1]

Came across this today and found a fix. At least in our case, we had to completely uninstall all .net core hosting bundles and runtimes. Rebooted the server, then reinstalled only .net 5 and 6, and boom it worked. Was having the exact same problem with 2.2.8

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jason Halliday