Configure And Host On IIS For .Net Core/.Net 5+ Web Application In Windows 10

What is ISS

Internet Information Services (IIS) is web server from Microsoft that runs on Windows systems to serve requested HTML pages or files.

Enable ISS

By default, ISS is disabled in windows, so to use it, first needs to be enabled. To enable and use IIS, Administrator Rights are required.

For .net core application hosting we need to install net core host bundle. Click here for the download link.

After the installation we need to enable IIS by following the next steps:

  1. Open Control Panel
  2. Select Programs and features
  3. Select Turn Windows features on or off

Select Internet Information Services and Hostable Web core. Press ok. It will take some minutes to load everything.

  1. After ISS is enabled, go to search bar in windows and type IIS, and open Internet Information Services Manager
  2. That’s it, you have successfully enabled ISS on your machine.


An application to run on ISS needs to be published. Publishing in visual Studio for IIS is very easy by using the following steps:

  1. Right click on your project
  2. Select Publish
  3. Select Folder option. With this you will select where the application will be published

Select the path

  1. Press Finish
  2. Press publish button
  3. Done, your application is not published on the desired path

Host application

In order to host an application on ISS, a website and an application pool needs to be created.

Create Website

  1. From left area Select Sites
  2. Right click -> Add Website
  3. Configure the Site
    1. Site name: your desired site name
    2. Physical Path: the location of the folder for the published location
    3. Biding, select your IP address, this will be your site address
    4. Change port from 80 to something else, example 90
  4. Press ok

Application pool

  1. From left area Select Application Pools
  2. Select Default application pool
  3. On the Right select Basic Settings
  4. At .NET CLR version select no managed code (specific for .net core applications)
  5. Press ok

Now you have a hosted application in IIS.

Similar Articles