title: Can't access LocalDB on other computers, through application
body: <p>I have made an application which uses a LocalDB, to refer to some predefined values as part of some mathematics that it does. 
  I have created an Installer project so that when the application gets installed, a copy of the DB is sent to [ProgramData][ProductName], which is mapped as the pathway for the ConnectionString.</p>
  
  <p>When I install it and run the application on my computer (out of Visual Studio), it runs exactly as I want it too - and there are no errors, warnings or messages in the code.
  However when I installed it on to someones else's computer (so they can play with it and point out any errors that they come across), this is where the problem comes about.</p>
  
  <p>On their computer, whenever the code refers to the LocalDB they get the below Exception Message:</p>
  
  <p>"A network-related or instance specific error occurred while trying to establish a connection to SQL Server" System.Data.SqlClient.SqlException (0x80131904). 
  The error goes on to say that the LocalDB instance does not exist.</p>
  
  <p>I've double checked the ProgramData folder, and can confirm that the LocalDB did get copied there during the install - and I have confirmed that the code is looking at the correct folder when trying to connect to it - I just can't figure out what is happening.</p>
  
  <p>I have checked that the user has read/write access to the folder, and is a LocalAdmin on their computer.</p>
  
  <p>Is anyone able to help guide me to a solution with this, please?</p>
  
  <p>ConnectionString is below, if it helps:</p>
  
  <pre><code>AppDomain.CurrentDomain.SetData("DataDirectory", Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Application_Name"));
  ConnectionString = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True";
  </code></pre>