Dockerized ASP.NET apps no longer starting from Visual Studio

John K 6 Reputation points
2021-11-08T12:52:31.337+00:00

I have two containerized ASP.NET applications in a single VS2019 solution, that I usually run using docker-compose via Visual Studios integrated tools. I'm starting them either without debugger (using CTRL+F5), or with debugger (using just F5). This setup has worked for a couple of years now. But a few days ago, all of a sudden, the applications aren't starting up anymore when I try to start them from Visual Studio. The containers are being build, but the Container Tools output just says "========== Launching ==========" and then nothing. And the logs from both of the started containers are empty.

I'm not sure if this has anything to do with the fact that VS will add some overrides to the docker-compose file (like "ENTRYPOINT tail -f /dev/null") but then again, it has always worked until now, so I don't know why this would suddenly start working.

I can still start up the applications from a terminal using the docker-compose CLI. However Visual Studio can't seem to attach a debugger to it if I run the containers that way, so I really need to get Visual Studio working again.

I can only think of three factors that may cause this:

  1. A change in my own code
  2. A bug in the latest VS2019 update
  3. A change in the latest Docker Desktop (Windows) update

I've eliminated number 1 by checking out an old version of my source code, but that didn't help.
I've eliminated number 2 by installing an older version of VS2019 Professional, but that also didn't help.

Has anyone else had any issues with this lately?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,577 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
935 questions
{count} votes