Hello Team,
I develop an invetory management system and deploy it, and I run the setup on my laptop and everything work fine, and when I run this same setup on my friend laptop I keep getting bellow error so I thought becuase i didn't install SSMSQLSERVER and sqlexpress that is why so I install both SSMSQLSERVER, sqlexpress and uploaded mdf and idf file in the file system but still the setup is not working on my friend laptop and also change the connectionString but still the error keep coming when I run the setup.
A network - related or instance-specific error occured 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 sqlserver is configured to allow remote connection. (provider Sql Network interfaces, error; 26 -Error Locating Server/Instance Specified)
App.Config ConnectionString
connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Attey.mdf;Integrated Security=True"
providerName="System.Data.SqlClient" />
Class ConnectionStrng that reference varrious pages for data input and retrieval in the application
public string MyConnection()
{
con = @"Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Atteys.mdf;Integrated Security=True";
return con;
}
Jignesh KumarPosted Jan 9, 2024, 8:45 AM
Hello,
You are missing initial catalog in connection string,
or just replace your data source to .
Anandu G NathPosted Jan 9, 2024, 4:21 AM
@Emmmanuel FIADUFE
this error becouse of you are not enabled TCP port
Emmmanuel FIADUFEPosted May 13, 2022, 6:28 PM
Emmmanuel FIADUFEPosted May 13, 2022, 5:43 PM
The
Please this is the error I keep getting when I run the setup on a different laptop. Thanks
Please I have app.config connectionstring and the unit class DBconnectionstring which one do you want me to change,and should DBconnectionstring and unit class be the same. Thanks in advance
Gajendra JangidPosted May 12, 2022, 3:26 AM
Emmmanuel FIADUFEPosted May 11, 2022, 8:41 PM
Amit MohantyPosted May 11, 2022, 4:52 AM
Emmmanuel FIADUFEPosted May 10, 2022, 12:52 PM
Emmmanuel FIADUFEPosted May 8, 2022, 6:13 PM
Sachin SinghPosted May 8, 2022, 5:33 PM