N
Neon13mo ago
rising-crimson

problema em rodar o migration no Postgres

I am running dotnet ef database --project .\Infrastructure --startup-project .\MinhasPrioridades update noin neon tech and show it: (tested the connection with table and the worked, but when running migration not!) my connection string "connectionString": "Server=ep-purple-hat-a8ntqyuw.eastus2.azure.neon.tech;Port=5432;Database=xxxx;User Id=xxxx;Password=xxxxx;sslmode=require;Pooling=true;trust Server Certificate=true;", somenone have idea ? Build succeeded. The Entity Framework tools version '6.0.5' is older than that of the runtime '7.0.18'. Update the tools for the latest features and bug fixes. See https://aka.ms/AAc1fbw for more information. Npgsql.NpgsqlException (0x80004005): Failed to connect to [::1]:5432 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at Npgsql.Internal.NpgsqlConnector.Connect(NpgsqlTimeout timeout) Failed to connect to [::1]:5432
EF Core tools reference (.NET CLI) - EF Core
Reference guide for the Entity Framework Core .NET Core CLI tools
6 Replies
afraid-scarlet
afraid-scarlet13mo ago
Connection strings should be off the form Host=hostname;Port=5432;Database=dbname;Username=username;Password=password;SSLMode=Require That trust server certificate looks suspicious
rising-crimson
rising-crimsonOP13mo ago
i tried remove this, but still the same problem i tried too equal you had done , but the problem still ]
afraid-scarlet
afraid-scarlet13mo ago
can you try using psql?
rising-crimson
rising-crimsonOP13mo ago
yes i used by dbvear a connection. but just when run by migration and database update , doesnt work
afraid-scarlet
afraid-scarlet13mo ago
I don't know what "doesn't work" means
rising-crimson
rising-crimsonOP13mo ago
the command migrantion not work

Did you find this page helpful?