I am trying to dockerize an Asp.net Core 5 Web API project and so I am going to transfer all configs from appSettings.json to docker-compose environment section . and then going to read them from environment section in a Controller . how should do this ? I have tried to use IConfiguration and Environment in ..
I have a very strange error and I cannot find a solution. I have a RESTful service written with Asp.Net core wich is running in a docker-container on a virtual machine of my university. I want to access the service via an SSL-encrypted connection. So, I got an SSL-certificate for the according domain (studybuddy.hshl.de, not ..
I am converting an ASP.NET API that currently runs on a windows server running IIS 8, to run inside of a docker container using the following IIS image: mcr.microsoft.com/dotnet/framework/aspnet:4.7.1 I have the API working correctly however, some calls can take over a minute to send a response. The current IIS setup has a connection timeout ..
My goal is to up and running multiple containers on docker with https using asp net webapi. So far I successufully ran one webapi container with https followed steps in this article: Hosting ASP.NET Core images with Docker over HTTPS When I try to add https to second container while sending request my second webapi ..
I have a .net 5.0 react application. I’m trying to add docker support, but I’m facing the following exception AggregateException: One or more errors occurred. (One or more errors occurred. (Failed to start ‘npm’. To resolve this:.  Ensure that ‘npm’ is installed and can be found in one of the PATH directories. Current PATH ..
I’m trying to develop a Vue.JS SPA and serve it using an ASP.NET Core core application which runs in a Docker container, while retaining the ability to have the SPA auto-update when I make changes to the code in Visual Studio 2019. I notice that .UseProxyToSpaDevelopmentServer() is provided through ISpaBuilder when configuring the app.UseSpa() call ..
I have a ASP.NET 5.0 Web API using Entity Framework to access SQL Server. Running (F5) from Visual Studio works fine. The connection string is Server=(localDB)MSSQLLocalDB;Database=***;Integrated Security=true I then add docker support. Now if I debug the app with the Docker profile I get a System.PlatformNotSupportedException: LocalDB is not supported on this platform. What should ..
I have a .NET Core application running in docker that connect to MySQL database on docker, when MySQL docker container run with docker run command : C:dev>docker run -p 3310:3306 –name=mysql1 -e MYSQL_ROOT_PASSWORD=pw -d mysql:5.6 C:dev>docker run -p 3311:3306 –name=mysql2 -e MYSQL_ROOT_PASSWORD=pw -d mysql:5.6 I don’t get the error, but when I try using docker-compose ..
I’ve got an ASP.NET Core API server. I’m using some python libraries via Python.Included. When I build a Dockerfile and run it, it complains about being unable to load shared library ‘python37’. When PythonEngine.Initialize() is run, an error is thrown. Error message when docker build: System.DllNotFoundException: Unable to load shared library ‘python37’ or one of ..
It works with docker compose on my local machine, using the service name as as the hostname for the httpclient call but it doesn’t work on heroku and I keep getting the following error, apparently there’s a problem with the multi-container communication Connection id "0HM9TMTBOMRA8", Request id "0HM9TMTBOMRA8:00000002": An unhandled exception was thrown by the ..