Reputation: 1699
When I create a new project in Visual Studio using the "ASP Net Core Web Application" template, and press F5 (or click the "IIS Express" debug button), what exactly is happening in the background in terms of web servers?
mcr.microsoft.com/dotnet/core/sdk:3.1
and run it, does this also start an IIS + Kestrel inside the container?Upvotes: 1
Views: 2465
Reputation: 721
The IIS express will run like you say as a proxy in front of the kestrel process. In earlier versions of .Net IIS would also run the application but now that is handled by kestrel.
In your project you will have (else you can create it) a folder called Properties with a file called launchSettings.json where you can specify profiles for how you want to run your project. In most cases this will be created when you create a new project in VS. Here you can add or modify profiles.
To run your project without IIS express your profile should have "commandName": "Project"
. You can then choose what profile to run using the interface of VS.
Im not entirely sure why you cant access this.
That depends on your docker file but if you use the standard file it will not use IIS.
Upvotes: 3