Setting up IIS to run .NET Core Applications 23 January 2019 06:07 Sam MacDonald ASP.NET, .NET Core, Windows Server, IIS (0) TweetShareAs I’m getting another IIS Server ready to run a .NET Core Web Application I thought I would document the process so that if someone else wants to get their IIS server configured and serving they can follow along.First off there are lots of options for setting up a .NET Core application, we will not get into those options today they may become another post at a later time.Supported systemsThe following operating systems are supported for running with IIS:Windows 7 or laterWindows Server 2008 R2 or laterIIS ConfigurationWindows Server Operating SystemsEnable the Web Server (IIS) server role and establish role services, if this has not been done already.Use the Add Roles and Features wizard from the Manage menu or the link in Server Manager. On the Server Roles step, select the checkbox next to Web Server (IIS).After adding the Web Server, select the desired role services or accept the default services provided.Continue on to install the web server role and services. A server reboot is not required after installation.At some time in the future I will try to update this and include the steps for Windows as well as Windows ServerInstall the .NET Core Hosting BundleThe .NET Core Hosting Bundle installs the .NET Core Runtime, .NET Core Library and the ASP.NET Core Module. This module allows ASP.NET Core applictions to run behind IIS. Of concern is to remember that installation of the Microsoft Visual C++ 2015 Redistributable is necessary before installing the .NET Core Hosting Bundle.One thing to remember is if the Hosting Bundle is installed before IIS, it must be repaired. Run the installer again after installing IIS.Download (current version)Obtain the latest installer by following this link:Latest .NET Core Hosting Bundle installerInstall the Hosting BundleRun the installer on the server that was downloaded. There are some switches that can be used on the installer to customize how the installation occurs. At a later time I will add them to this post.Restart the systems or execute net stop was /y followed by net start w3svc from a command prompt or PowerShell as an administrator. Restarting IIS allows the service to pick up an environment variable that is added by the installer.If the installer detects that IIS requires a reset in order to complete the installation, IIS will be reset. If the installer triggers a reset, all of the app pools and websites are restarted.In the future I will add some more details to this walkthrough as well, just wanted to document this and have it available when I needed to do this again.