title: how to publish a windows form app with its database in C#
body: <p>I make a windows form application with its database and I want to publish it . the app is running in my system so good but when I run it in another PC its shows errors about cannot connect to its database.
  also I put database mdf and ldf file in program folder but my app doesn't work.</p>
  <p>and this is my connection string :</p>
  <pre class="lang-cs prettyprint-override"><code>string connectionSt = &quot;Data Source=DESKTOP-NLKJ55F;Initial Catalog=IndustryContracts;Integrated Security=True&quot;;
  </code></pre>