Base solution for your next web application
Open Closed

Cannot connect to DB during initial set up #3721


User avatar
0
jholla created

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)
  • User Avatar
    0
    alirizaadiyahsi created

    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>

  • User Avatar
    0
    jholla created

    Yes I can connect just fine, ABPBoiler wont connect however

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.