Install NET Core Hosting Bundle

Kailash Chandra Behera | Thursday, August 13, 2020

Introduction

This blog provides a complete guideline on how to Install the 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 .NET Core Hosting Bundle follow the below stapes, these steps are also applicable to the Winodes version(Windows8, Windows 10, Windows Server, etc).

  1. Click this Official Site link to visit the official site for the .NET Core Hosting Bundle installer file.

  2. Select the desired .NET Core version.

  3. You can direct download the latest version of .NET Core Hosting Bundle by clicking on this download link.

  4. After completing the download, run the installer on the server, where your IIS is running.

  5. The following parameters are available when running the installer from an administrator command shell:

    1. OPT_NO_ANCM=1: Skip installing the ASP.NET Core Module.

    2. OPT_NO_RUNTIME=1: Skip installing the .NET Core runtime. Used when the server only hosts self-contained deployments (SCD).

    3. OPT_NO_SHAREDFX=1: Skip installing the ASP.NET Shared Framework (ASP.NET runtime). Used when the server only hosts self-contained deployments (SCD).

    4. 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.

    5. 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.

  6. Restart the system, restarting IIS picks up a change to the system PATH, which is an environment variable, made by the installer.

Note:-

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