imageI published my site, which I created with MVC, and adapted the database information according to the connection string, but I could not establish the connection.
I published my MVC project with vs2022. I created a db from the hosting company I bought and added the database that I backed up. Then, I edited the connection string according to the connection in my hosting company. I still could not establish the connection. I wrote it in Appsettings.json. My connection string is as follows.
“ConnectionStrings”: {
“DefaultConnection”: “Server=.MSSQLSERVER2019;Database=Decoration;User=stardeko;Password=test”
},
Kadir Yıldız is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.