An error occurred using the connection to database ” on server ‘10.28.253.2’

Question: When I was doing EF Core Migration, “An error occurred using the connection to dataBase” ‘on server ‘10.28.253.2 “”

When doing data migration, follow the usual steps

  • Add-migration init (Execute this command to generate a directory for the project (Migration))
  • Update-Database init

The database connection string used was previously queried successfully. The contents of the string are as follows

"ConnectionStrings": {"Default": "Data Source = 10.28.253.2; Initial Catalog = SignalR; User Id = sa; Password =Ecsgui123;"

However, after copying over today, the execution of death error, error content as shown in the figure below:

“Access denied for user” is used in the last line of the error message. There is an address “10.28.160.250” which cannot be found in any program. The address “10.28.160.250” is used

Integrated Security=False; Integrated Security=False; Integrated Security=False; Integrated Security=False; Integrated Security=False; Integrated Security=False; Integrated Security=False; Integrated Security=False; Integrated Security=False; Integrated Security=False; Integrated Security=False Content, problem solved here.

“ConnectionStrings”:

"Default": "Data Source = 10.28.253.2; Initial Catalog = SignalR; User Id = sa; Integrated Security=False; Password =Ecsgui123;"