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:

  • Open Control Panel
  • Select Programs and features
  • 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.


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

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

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

Select the path

Press Finish

  • Press publish button
  • 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

  • From left area Select Sites
  • Right click -> Add Website
  • Configure the Site
  • Site name: your desired site name

            Physical Path: the location of the folder for the published location
            Biding, select your IP address, this will be your site address
            Change port from 80 to something else, example 90

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