AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Please clarify backward compatibility

Open k3davis opened this issue 3 years ago • 2 comments

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.

k3davis avatar Mar 10 '22 19:03 k3davis

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.

k3davis avatar Mar 11 '22 13:03 k3davis

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:

  1. Open the Command Prompt as an administrator.
  2. Navigate to the directory where the Hosting Bundle installer is located.
  3. Run the following command:    shell    dotnet-hosting-{version}.exe /repair   

wadepickett avatar May 21 '25 17:05 wadepickett