How Visual Studio Launches IIS Express to Debug ASP.NET Core Apps
Note that for a published ASP.NET Core web app, the magic described below is not applicable, as a web.config file would be generated by dotnet publish command, which contains the necessary settings...