7Deploying ASP.NET Core
After having learned how to build front‐end applications with ASP.NET Core MVC, Angular, Bootstrap, and Gulp, it is finally time to show the application to other people. In order to do this, you need to deploy applications.
THE NEW HOSTING MODEL OF ASP.NET CORE
Before exploring the deployment of ASP.NET Core applications, it is important to understand how they are hosted inside servers.
In classic ASP.NET, applications are DLLs that are hosted inside the IIS Application Pool (also known as Worker Process, w3wp.exe
). They are instantiated from IIS’s runtime manager. When requests come in, they are sent to the HttpRuntime
of the right site, which lives inside an AppPool. In short, they are basically modules controlled by IIS itself.
In ASP.NET Core, it is totally different. Console applications run their own web server using Kestrel. Each application already hosts itself and can directly respond to requests over HTTP, so you might be wondering why you need IIS in first place. The reason ...
Get Front-end Development with ASP.NET Core, Angular, and Bootstrap 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.