Hi @Raccoon ,
Thanks for reaching out.
This behavior likely occurred because uninstalling the .NET 6 Hosting Bundle removed shared IIS integration components (used by the ASP.NET Core Module) that are still required by the .NET 8 Hosting Bundle.
Even though .NET runtimes are designed to be installed side by side, the hosting bundle (used for IIS-based deployments) includes common modules such as:
-
aspnetcorev2_inprocess.dll -
dotnet-hosting-*shared files
If the .NET 8 Hosting Bundle was installed before .NET 6 was uninstalled, removing .NET 6 could have deleted these shared hosting files - breaking IIS integration and causing the 500 errors you observed.
That’s why you noticed the missing hosting bundle DLL, and why it didn’t occur in your lower environment - the uninstall process can behave differently depending on update history or which hosting bundle version was installed last.
Recommended actions
- Reinstall the .NET 8 Hosting Bundle on the affected server to restore all shared IIS hosting components.
- Restart IIS (
iisreset) after installation. - For future upgrades, uninstall older hosting bundles before installing the new one, or reinstall the newer bundle afterward to ensure shared files remain intact.
For reference: .NET Hosting Bundle installation and upgrade guidance
Hope this helps! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.