ASP.NET Core Web API Docker Linux refused to connect

Viewed 315

I've created a new project in VS 2019 with the following options: Template: "ASP.NET Core Web Application" for C#

On the Advanced options, I've enabled everything: "Configure for HTTPS", "Enable Docker Support" in Linux, "Enable OpenAPI support".

However even with a default template configuration, when I start it, it refuses to connect to the browser. This is a 100% default project from the Template.

I've also tried creating a project without SLL to see if that was the problem but no.

I've been around this for the last hour and I can't figure out what is going on.

I'm running a Windows 10 10 Pro 20H2, with Docker Desktop 3.0.0 (50684) with WSL2 enabled and Visual Studio 2019 Enterprise 16.8.1.

Any ideas?

Thank you.

0 Answers
Related