Skip to main content

All Questions

Tagged with
0 votes
0 answers
52 views

Does EF Core have the ability to add an extension to an existing docker Postgres database [duplicate]

As title says: I have a .NET 8 application, using Entity Framework Core, with the application and database running on Docker containers. I would like to add postgres-uuidv7-sql to the current existing ...
rcwombat's user avatar
0 votes
1 answer
1k views

System.Net.Sockets.SocketException: Name or service not known, when trying to MigrateAsync and running the app via docker-compose

I've created a hosted service that is supposed to apply migrations to postgres when app is starting: internal class DatabaseInitializer : IHostedService { private readonly IServiceProvider ...
Hubert Damaszko's user avatar
0 votes
0 answers
146 views

ASP.NET Connection string in Docker

So, i am trying to connect to my postgres database that is set up in docker. But i wanted to have a more secure connection string, like a environment variable that will not go to github since this ...
Victor's user avatar
  • 1
0 votes
1 answer
296 views

How to fix 'The ConnectionString property has not been initialized.' in .Net

I'm developing a .Net api using Docker containers, but at the moment to ask a GET request in swagger, it throws back " The ConnectionString property has not been initialized." which has to ...
Gr22's user avatar
  • 11
0 votes
3 answers
756 views

I can't connect my postgresql docker container to my .NET 6 container

I have implemented an application with REST interfaces in C# on .NET 6. When the URLs are called, then the data is fetched from a Postgresql database and returned. The application is implemented as ...
Razielruss's user avatar
1 vote
0 answers
345 views

How to configure docker compose file to use .net core web api and mssql

I am trying to configure docker-compose file to have possibility to run several services of the whole application (api - .net web api, db - PostgreSQL, rabbitmq, pgadmin). However, an additional ...
Jarosław Leśniak's user avatar
1 vote
1 answer
534 views

C# Web Api hosted in a docker container can't connect to postgres database also hosted in a docker container

I am having 2 docker containers on my linux server. One container is a postgres database. The other container is a C# Web Api. Now I want to connect to the postgres database from the web api. I have ...
Glover's user avatar
  • 23
0 votes
0 answers
469 views

How do I connect ASP.NET Container to Postgres container?

Problem I have an API in asp.net core and I'm using Npgsql with it which is running on docker. When I'm running it on visual studio with swagger it works, but if i'll put my api into container it can'...
beriscen's user avatar
0 votes
2 answers
1k views

Unable to connect to PostgreSQL in Docker from another Docker container

I have 2 docker containers as shown below. I can connect to PostgresSQL in docker by calling Test.Main() method without exception through a net6.0 C# Console App. But when I try to call Test.Main() ...
Syed Rafey Husain's user avatar
0 votes
1 answer
320 views

Unable to connect to Docker PostgresSQL using IP Address

I am using C# Visual Studio 2022/.NET6. I am getting an exception when I try to connect PostgreSQL on the Docker container using the container IP Address 172.17.0.2: "Host=172.17.0.2:5432;...
Syed Rafey Husain's user avatar
0 votes
0 answers
207 views

Unable to connect to PostgreSQL in Docker

I am getting the following exception in C# Visual Studio 2022/.NET6 when I try to connect PostgreSQL running as a Docker container: How I am installing PostgreSQL as Docker container Step 1 - Install ...
Syed Rafey Husain's user avatar
0 votes
1 answer
489 views

Unable to connect to PostgresSQL running on Docker

I have the following PostgreSQL running on Docker, which I cannot connect to. When I try to connect using Visual Studio 2022 extension [Npgsql PostgreSQL Integration]1, I get an error Exception while ...
Syed Rafey Husain's user avatar
2 votes
1 answer
431 views

how to fix the error "System.ArgumentException: Keyword not supported: 'port'." in net core?

I was trying to create two docker images: asp.net core and postgresq, but connection string doesnt recognize properly the port. This is the docker-compose.yml file: version: '3.4' networks: -...
Turing's user avatar
  • 21
1 vote
1 answer
1k views

Can't get my C# / ASP.NET Core 6 MVC app to work via a docker container over ssl

I am trying and failing at deploying an ASP.NET Core 6 MVC app in a docker container over ssl. I have a mystery crash issue of which I can't seem to find the cause. I can't even get a meaningful error....
ChristianOConnor's user avatar
1 vote
1 answer
1k views

docker-compose up C# ASP.NET MVC app container along side of a postgresql container Failed to connect to [::1]:5432

I am trying to launch my C# ASP.NET MVC app along side of a postgres server in 2 respective docker containers running on the same docker network. It won't work. The following is the relevant code. ...
ChristianOConnor's user avatar

15 30 50 per page