Hello Team,
Please I developed C# window Application with sqlserver management studio 18 and after deploying the application and I tried to install it on the user computer and this error came, 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)
Emmmanuel FIADUFEPosted May 4, 2022, 6:33 PM
Emmmanuel FIADUFEPosted May 4, 2022, 2:39 PM
Emmmanuel FIADUFEPosted May 3, 2022, 5:12 PM
Hello Sachin,
I have tried all the steps you shown me and everyonce suggestion but nothing is working.
I even tried to install SSMSQLSERVER on the user computer but the system keep giving me the same error like
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)
I thought it is firewall that is blocking the sqlserver port and assign 1433 to the inbound port but it is still not working.
Please though SSMSQLSERVER was successfully installed and when I try to login then the error popup, but what could be blocking the sqlserver from working on the user computer though everything work fine on my laptop ?
Sachin SinghPosted May 2, 2022, 7:40 PM
Sachin SinghPosted May 2, 2022, 7:40 PM
Emmmanuel FIADUFEPosted May 2, 2022, 7:33 PM
Emmmanuel FIADUFEPosted May 2, 2022, 7:26 PM
Emmmanuel FIADUFEPosted May 2, 2022, 7:06 PM
Sachin SinghPosted May 2, 2022, 6:47 PM
Emmmanuel FIADUFEPosted May 2, 2022, 6:36 PM
Thank you Sachin,
That is exactly the answer am looking for, but with the MDF file, what I can see now is [ Program Debug Databases], is it the same as MDF file.
Emmmanuel FIADUFEPosted May 2, 2022, 6:25 PM
Thank you Sachin, that is exactly the answer am looking for, but with the MDF file, what I can see now is [ Program Debug Databases], is it the same as MDF file
Sachin SinghPosted May 1, 2022, 2:37 PM
Emmmanuel FIADUFEPosted Apr 30, 2022, 5:08 PM
Thank you Kumar, Muhammad,and Sam but please my question is must I install SSMSQLSERVER on the user computer before my application can work because I thought I have published the C# application with the sqlserver
Sam HobbsPosted Apr 27, 2022, 9:53 PM
Ensure that SQL Server is executing. You can do that in many ways but since I currently do not have SQL Server installed in my system I cannot confirm how to do that. I assume the system has SQL Server Management Studio (SSMS) installed and you can use that to check on SQL Server. Otherwise there are many ways to look at and start services; SQL Server is a service.
I think you can use SSMS also to get the connection string.
Another way to get the connection string is to first create a text file with any name and then change the extension to udl. So in other words create cs.txt and rename it to cs.udl. Then open the file (double-click or whatever). A GUI will open that will make it easy to create a connection string. Then open the udl file using a text editor and you can copy the conmnection string from there.
Uttam KumarPosted Apr 26, 2022, 2:01 AM
From the error message it’s apparently not able to establish connection with sql server. Check the following
Muhammad Imran AnsariPosted Apr 25, 2022, 2:45 AM