tokyo0709
tokyo0709

Reputation: 1997

Local Db failure on initialization of template

I'm trying to setup a startup template to play around with boilerplate and see what it could potentially offer and I'm running into issues setting up my local database.

I've tried the core startup template download as well as MVC 5 and they've both given me the same issue so far. I'll open up the solution in VS 2017, clean the solution, rebuild, enter Package Manager Console and execute Update-Database on the EntityFramework project and I get this error on both projects,

ClientConnectionId:00000000-0000-0000-0000-000000000000
Error Number:2,State:0,Class:20

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: Named Pipes Provider, error: 40 - 
Could not open a connection to SQL Server)

I'm having a hard time understanding what this might be indicating. I'm pretty sure I've been able to use my local db in other projects recently.

Upvotes: 0

Views: 757

Answers (1)

aaron
aaron

Reputation: 43098

You need to set up an empty database and provide a valid connection string in appsettings.json.

You can use Microsoft's SQL Server.

Upvotes: 1

Related Questions