Error: 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) PM>
COnnection siting in appsettings.json: { "ConnectionStrings": { "Default": "Server=localhost; Database=(localdb)/MSSQLLocalDB/VMARDb; Trusted_Connection=True;" } }
Also tried:
{ "ConnectionStrings": { "Default": "Server=localhost; Database=VMARDb; Trusted_Connection=True;" } }
3 Answer(s)
-
0
Hi,
Can you connect your SQL server directly? For example, could you try to connect with sql management studio? This is a common error about SQL server. Check this: <a class="postlink" href="https://stackoverflow.com/questions/18060667/why-am-i-getting-cannot-connect-to-server-a-network-related-or-instance-speci">https://stackoverflow.com/questions/180 ... ance-speci</a>
-
0
Yes I can connect just fine, ABPBoiler wont connect however
-
0
Hi @jholla,
Do you connect with username&password or with your windows accout while you are connecting with SQL management studio or any other tool ?
Can you share a screenshot ?
Thanks.