✅ cant do "update-database"
this is the info it gives for not being able to do it
"Microsoft.Data.SqlClient.SqlException (0x80131904): 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: SNI_PN11, 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.)
---> System.ComponentModel.Win32Exception (2): The system cannot find the file specified."
does anyone have any ideas?
9 Replies
Did you Verify that the instance name is correct and that SQL Server is configured to allow remote connections. and Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.?
i dont input the instance name anywhere though i dont think, i just do "update-database". how do i check if local database runtime is enabled?
Make sure SQL Server is running
And make sure the connection string is correct
yeah its running
where can i check that?
Where the DbContext is configured
wdym? sorry im new to asp.net
the video i was watching doesnt declare anything, he started the program from the beginning but didnt initialise anything and his worked somehow
freeCodeCamp.org
YouTube
ASP.NET Core Crash Course - C# App in One Hour
Learn how to create a web database app in ASP.NET Core using Visual Studio and the C# language.
This tutorial will show you how to :
- Use the MVC (Model View Controller) design pattern.
- Configure database tables using the Entity framework.
- Setup of classes as models. Customize Razor forms.
- Create methods inside a controller.
- Style an A...