i try to modify my local db connection (which works fine) in the appsettings.json :
"ApplicationDbContextConnection": "Server=(localdb)\\mssqllocaldb;Database=CateringMilano;Trusted_Connection=True;MultipleActiveResultSets=true"
with the sql server connection :
"ApplicationDbContextConnection": "Data Source=SQL5101.site4now.net;Initial Catalog=db_9b307b_cateringmilano;User Id=db_9b307b_cateringmilano_admin;Password=YOUR_DB_PASSWORD;Trusted_Connection=True;MultipleActiveResultSets=true"
but when i run the project i got a strange error:
local host does not exists..
and also
An unhandled exception occurred while processing the request.
SqlException: Failed to generate SSPI context. Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, bool breakConnection, Action wrapCloseInAction)
and also i cannot see the sql server db in visual studio sql explorer..
What do i need to connect my website to my sql sever db? what am i missing to do?
Thanks



