I keep getting this error when I try to do an update-database command in the package manager console:
ClientConnectionId:00000000-0000-0000-0000-000000000000 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: 50 - Local Database Runtime error occurred. Specified LocalDB instance name is invalid. )
My connection string is:
<connectionStrings>
<add name="BookServiceContext" connectionString="Data Source=(localdb)\\v11.0; Initial Catalog=BookServiceContext-20150228232739; Integrated Security=True; MultipleActiveResultSets=True; AttachDbFilename=|DataDirectory|BookServiceContext-20150228232739.mdf" providerName="System.Data.SqlClient" />
</connectionStrings>
I can connect via SSMS 2014 and I can see (localdb)\MSSQLLocalDB
and (localdb)\ProjectsV12
in the SQL Server Object Explorer.
EDIT
Even when a part of connection string is changed to: AttachDbFilename=|DataDirectory|\BookServiceContext-20150228232739.mdf"
It still pulls the same error.