Introduction
This blog provides a complete guideline on how to Install the Dot NET Core Hosting Bundle into the windows hosting bundle to run ASP.NET Core apps behind IIS.
Getting Started
The .NET Core Hosting Bundle installs the .NET Core Runtime, .NET Core Library, and the ASP.NET Core Module on the hosting system. The ASP.NET Core Module allows ASP.NET Core apps to run behind IIS.
To install the Dot NET Core Hosting Bundle follow the below stapes, these steps are also applicable to the Winodes version(Windows8, Windows 10, Windows Server, etc).
Click the net core download link Official Site link to visit the official site for the .NET Core Hosting Bundle installer file.
Select the desired .NET Core version.
You can direct download the latest version of .NET Core Hosting Bundle by clicking on this download link.
After completing the download, run the installer on the server, where your IIS is running.
The following parameters are available when running the installer from an administrator command shell:
OPT_NO_ANCM=1: Skip installing the ASP.NET Core Module.
OPT_NO_RUNTIME=1: Skip installing the .NET Core runtime. Used when the server only hosts self-contained deployments (SCD).
OPT_NO_SHAREDFX=1: Skip installing the ASP.NET Shared Framework (ASP.NET runtime). Used when the server only hosts self-contained deployments (SCD).
OPT_NO_X86=1: Skip installing x86 runtimes. Use this parameter when you know that you won't be hosting 32-bit apps. If there's any chance that you will host both 32-bit and 64-bit apps in the future, don't use this parameter and install both runtimes.
OPT_NO_SHARED_CONFIG_CHECK=1: Disable the check for using an IIS Shared Configuration when the shared configuration (applicationHost.config) is on the same machine as the IIS installation. Only available for ASP.NET Core 2.2 or later Hosting Bundler installers. For more information, see ASP.NET Core Module.
Restart the system, restarting IIS picks up a change to the system PATH, which is an environment variable, made by the installer.
Run the Hosting Bundle installer again after installing IIS., if the Hosting Bundle is installed before IIS.
Summary
The above steps, helps to Install the NET Core Hosting Bundle into the windows hosting bundle to run ASP.NET Core apps behind IIS. I hope you have enjoyed it a lot.
Thanks