I'm learning to build ASP.NET Core MVC app with Visual Studio with this tutorial. In the "Adding a model" step I created a new separate project (as written in the instructions), but when I rundotnet ef database update
, the following error occurs:
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: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)
But I have installed SQL Server and SQLEXPRESS service is running. I also tried to open port, but it didn't help.