Home > Articles > Details

Could not execute because the application was not found or a compatible .Net SDK is not installed


Question: How do you solve for docker-compose up" error that says "Could not execute because the application was not found or a compatible .Net SDK is not installed" and prints to the stdout the error saysing "ContainerName exited with code 145". I can can verify that the AppName.dll does actually exist.

Login to See the Rest of the Answer

Answer: Make sure that the Docker Image or Container has content in it, this indicates that the file cannot be found. Keep in mind that when you are building docker-compose with muiltiple services in it, it requires that the Service Dockerfile be in the same directory as the docker-compose.yaml or docker-compose.yml file. This error sometimes it is not thrown when building the services, instead it is a good rule of thumb to know this.

Best way to know if the Docker Container has application files in an /app directory is by inspecting the Docker Container, the tricky part is that you can only inpesect (if am not mistaken) the live Docker Container, since the Container you are trying to Insepect is not up and running, it will be a little tricky to verify that the Container has necessary application files required to run the app.


However, you could verify that the Dockerfile for the Application should be in the same directory as the dockercompose.yml file. Also make sure that the Dockerfile has correct paths to the directory the app resides in order to copy the right application files to Docker Container.

I hope this helps you, check out another article here. 



If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2022 - ErnesTech - Privacy