Hi all. I don't know what to do, how not change how the connection string still does not find the server.
My application configuration:
"ConnectionStrings": { "MainDB": "Server=sbm15yyj.beget.tech;Database=sbm15yyj_dicedev;User Id=sbm15yyj_dicedev;Password={pass};" }

Data is taken from the hosting Beget, access from all addresses, like opened.
Next, register in the DI:
var connectionString = configuration.GetConnectionString("MainDB"); services.AddDbContext(op => op.UseSqlServer(connectionString));
When referring to the table expecting to get an Exception that table is not (because you haven't made the first migration). And get the error that cannot find the server.
Win32Exception: the network path Not found SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)