I've made an Windows Form Application in Visual Studio with a local database, and as always it works fine when developing it but if I publish it and try to run on a different computer, it doesn't work.
Here is my connection string in app.config:
<connectionStrings>
<add name="Fitness_Club.Properties.Settings.FitnessClubConnectionString"
connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\FitnessClub.mdf;Integrated Security=True;Connect Timeout=1"
providerName="System.Data.SqlClient" />
</connectionStrings>
These are my application files
This is the error I get on other computers!
I'm struggling with these already 2 days and can't come to an end.
What I need to do to run my application on other computers?