I recently installed Visual Studio IDE 2022 Version 17.6.2 and created a new Blazor Server Project targeting .NET 7.
For some reasons, unknown to me, the localdb is not listed under SQL Server on the SQL Server Explorer. I tried the following:
- Repair Visual Studio IDE.
- Check Registry for localdb instances.
- Checked the Visual Studio Installer and can see that SQL Server Express 2019 LocalDB is added and downloaded.
- Tried to create a DB using EF Core but I get an error that says: SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server.
- I ran "sqllocaldb info" in command prompt to see what databases are there on my device: MSSQLLocalDB and ProjectModels.
What could be the problem because this is my first time seeing this error.
I have attached images to this. If anyone has ever encountered this problem please explain how you overcame it. This is a new Blazor Server Project.
- VS: Visual Studio IDE 2022 Version 17.6.2
- OS: Windows 11 Pro Version 22H2
Thanks.
ATTACHMENTS: