Incorrect default stated.
It states here that Kestrel is used as the default.
ASP.NET Core project templates use Kestrel by default. In Program.cs, the ConfigureWebHostDefaults method calls UseKestrel:
On other docs, also for 3.1, it states that In-process is the default and that uses IISHttpServer
Since ASP.NET Core 3.0, in-process hosting has been enabled by default for all app deployed to IIS.
CreateDefaultBuilder adds an IServer instance by calling the UseIIS method to boot the CoreCLR and host the app inside of the IIS worker process (w3wp.exe or iisexpress.exe).
IIS HTTP Server (IISHttpServer) is used instead of Kestrel server. For in-process, CreateDefaultBuilder calls UseIIS to:
I may be mixed up but these seem like a direct conflict.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: f22dcddb-0c25-be1a-9a02-9e71dce86bdb
- Version Independent ID: 3e0e12c2-e544-5655-e001-d2ec180b11a8
- Content: Kestrel web server implementation in ASP.NET Core
- Content Source: aspnetcore/fundamentals/servers/kestrel.md
- Product: aspnet-core
- Technology: aspnetcore-fundamentals
- GitHub Login: @Rick-Anderson
- Microsoft Alias: riande
Rick Strahl's blog states that Kestrel is not the default web server when using In-process hosting. So if Strahl is correct then the docs stating that Kestrel is the default for 3.1 is incorrect, IF in-process is the default hosting method for a 3.1 app.
@jkotalik please review
I think the first doc comment can mention ASP.NET Core project templates use Kestrel by default when not hosted with IIS.
Yeah, that threw me off. Makes sense now that I understand ASP.NET Core projects use kestrel when run outside of IIS