How it works...

IIS can serve ASP.NET Core applications. By default, it'll assign port 80 to the first created website; we can change this default port to whatever we want/need in the bindings settings of the website:

If we want, we can set the Host name in the same window. The Host name is a domain name of that website, such as microsoft.com or google.com.

IIS uses the ASP.NET Core Windows Server Hosting bundle to serve the application. If we don't install the required bundle, IIS will display a HTTP500.19 error page instead of our application.

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.