AspNetCore.Docs
AspNetCore.Docs copied to clipboard
Please clarify backward compatibility
I looked here to find out if we need to install the Hosting Bundle for all frameworks currently in use, or just the runtime and only the latest hosting bundle (meaning the hosting bundle is backward compatible).
I didn't find the answer here, but would appreciate clarification on this. Thanks!
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 65973393-2cb9-a656-01b8-7963a7a40b39
- Version Independent ID: 22e2323b-18c3-ad2b-174c-84fbf642715e
- Content: Hosting Bundle
- Content Source: aspnetcore/host-and-deploy/iis/hosting-bundle.md
- Product: aspnet-core
- Technology: aspnetcore-hostdeploy
- GitHub Login: @Rick-Anderson
- Microsoft Alias: riande
In case the additional context is useful: I ran into an issue with an ASP.NET Core 2.1 application that stopped working from within IIS when the corresponding 2.1.x Hosting Module was uninstalled. However ASP.NET Core 3.1 applications continued to work fine with only the .NET 6 Hosting Bundle installed.
I think we might be able to use something like this to address the problem, (this is very high traffic topic): (View in edit mode to see usable markdown version)
Install the .NET Core Hosting Bundle
Important: If the .NET Core Hosting Bundle versions 3.1 or greater is installed before IIS versions on Windows Server 2012 R2 or later, you must repair the Hosting Bundle installation after installing IIS. Run the Hosting Bundle installer again and select the repair option to ensure all components are correctly configured.
Repair the .NET Core Hosting Bundle Installation
If you installed the .NET Core Hosting Bundle before IIS, follow these steps to repair the installation:
- Open the Command Prompt as an administrator.
- Navigate to the directory where the Hosting Bundle installer is located.
- Run the following command:
shell dotnet-hosting-{version}.exe /repair