I build a new .net Core Web API with connection to SQL DB. I have problems to connect the API with my Database I tried a local DB \"DefaultConnection\": \"Server=(loca
We hit a similar (or identical?) issue. .NET Core didn't work with a connection string but .NET Framework worked just fine with that same string. It turned out to be because our connection string was using an SQL Alias rather than the IP hostname of the database server, and .NET Core dropped SQL Alias support because it was too Windowsy/registry-y.
Changing the connection string to use the IP hostname or number resolved the issue.