Hello Team,
Please with C# window Application when I run the setup on my PC it work fine but when I run it on a different PC I keep getting this error, it seems like the app keep losing it connection with the sqlserver, 
Hello Team,
Please with C# window Application when I run the setup on my PC it work fine but when I run it on a different PC I keep getting this error, it seems like the app keep losing it connection with the sqlserver, 
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted May 23, 2022, 10:51 AM EDT
This is my code please
Data Source=(LocalDB)\v11.0;Integrated Security=SSPI;AttachDbFilename=|DataDirectory|AtteyNew.mdf;Integrated Security=True;
// Unit Class ConnectionString Code
public string MyConnection()
{
con = @"Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\App_Data\AtteyNew.mdf; Initial Catalog=Attey;Integrated Security=True";
return con;
}
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted May 23, 2022, 12:00 PM EDT
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted May 23, 2022, 2:40 PM EDT
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Oct 19, 2022, 8:24 AM EDT
Hello team, I have found the solution on how to deploy the application, I went into the set up folder to upload Sqlserver file and it works for me. Thank you all for your help.