Havingtrouble connecting to the database

-1
System.Data.SqlClient.SqlException
  HResult=0x80131904
  Message=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)
  Source=.Net SqlClient Data Provider
  StackTrace:
<Cannot evaluate the exception stack trace>

Inner Exception 1:
Win32Exception: The system cannot find the file specified

I am getting this error. I have checked different resources and haven't got a solution for this

This is my webConfig connection string

<connectionStrings>
    <add name="ConnStringDb1" connectionString="Data Source=localhost;Initial Catalog=SignupinfoDB;Integrated Security=True;" providerName="System.Data.SqlClient" />
  </connectionStrings>
.net
sql-server
asked on Stack Overflow Jul 11, 2019 by Adam • edited Jul 11, 2019 by a_horse_with_no_name

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0