Visual Studio integration with Docker Compose not functioning as expected.

Hello, I have on solution level a docker-compose file which I use to containerize my application. In Visual Studio I have because of this also a start button with Docker Compose. Yesterday I decided to make some changes in my Docker-compose file. Yet because of this I am unable to launch my project again.
The active launch profile Docker Compose is not valid. The services 'blob-storage' used in launch profile are not present in the docker compose files.
The active launch profile Docker Compose is not valid. The services 'blob-storage' used in launch profile are not present in the docker compose files.
When I click on this error message, Visual Studio redirects me to this file: Microsoft.VisualStudio.Docker.Compose.targets. I have tried to clean and rebuild the project but I have no clue on how to resolve this issue. Deleting this file is discouraged either.
17 Replies
Mayor McCheese
Mayor McCheese•7d ago
If you run a docker compose up manually does it fail?
Destination Unknown
Destination UnknownOP•7d ago
Nope
Mayor McCheese
Mayor McCheese•6d ago
Are you sure you're pointing at the docker compose you think you're pointing at?
Destination Unknown
Destination UnknownOP•5d ago
No description
Destination Unknown
Destination UnknownOP•5d ago
Could not copy the file "C:\Projects\nhs-frontend-csharp\nhs-frontend-csharp.advice\bin\Microsoft.PythonTools.WebRole.dll" because it was not found. i cant access microsoft.pythontools since its a flask project
Destination Unknown
Destination UnknownOP•5d ago
No description
Mayor McCheese
Mayor McCheese•5d ago
Tbh I've never used anything python related with visual studio I don't know what the issue might be there.
Destination Unknown
Destination UnknownOP•4d ago
No description
Destination Unknown
Destination UnknownOP•4d ago
do you know a place where i can raise an official issue?
Destination Unknown
Destination UnknownOP•4d ago
Destination Unknown
Destination UnknownOP•4d ago
GitHub
Issues · microsoft/PTVS
Python Tools for Visual Studio. Contribute to microsoft/PTVS development by creating an account on GitHub.
Destination Unknown
Destination UnknownOP•4d ago
I Fixed it! but its quirte lame Literally created a bin folder and added the file from above.
Mayor McCheese
Mayor McCheese•4d ago
Did that fix your docker compose
Destination Unknown
Destination UnknownOP•3d ago
I just see that my initial message was pointed towards another issue I was facing, but I am sure I can fix that one. Regarding the Could not copy the file "C:\Projects\nhs-frontend-csharp\nhs-frontend-csharp.advice\bin\Microsoft.PythonTools.WebRole.dll" because it was not found.; yes that one is solved. I only find it weird that this issue occurs, because it means that adding a Flask Web Project is not build ready. Adding the bin folder with that file works however, should this file not be there already by default....? This error showed up due to my LaunchSettings.json in the docker-compose orchestration not being updated. Shall I make for this an official issue?
Mayor McCheese
Mayor McCheese•3d ago
I mean you could open an issue in GitHub
Destination Unknown
Destination UnknownOP•2d ago
Gonna do that now 🙂
Destination Unknown
Destination UnknownOP•2d ago
GitHub
Adding a Flask web project to a docker-orchestration results in Web...
Describe the bug Adding a Flask web project to a docker-orchestration results in WebRole.dll error. Steps to Reproduce Create a blank solution and give it a proper name (for example MyApp). Add a n...

Did you find this page helpful?