title: connection string error during deployment c#
body: <pre><code>OleDbConnection MyConN= new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\3d_ServeR\Documents\Visual Studio 2013\Projects\POS\POS\POSDb.accdb");
  </code></pre>
  
  <p>connection string error on program deployment
  is there a fix on this problem? </p>
  
  <p>tried but i think is this for sql only</p>
  
  <pre><code>OleDbConnection MyConN_Deploy = new OleDbConnection
      {
          ConnectionString = "Data Source=" + System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\POSDb.accdb"
      };
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/bDkWB.png" rel="nofollow noreferrer">error</a></p>