title: 2 databases with the same name exist in web.config
body: <p>I've got a problem connecting to my Database.  I get this error   </p>
  
  <pre><code>An attempt to attach an auto-named database for file C:\Users\Visual Studio 2013\WebSites\RegisterDb\App_Data\RegisterDb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
  </code></pre>
  
  <p>Here is my web.config</p>
  
  <pre><code>&lt;configuration&gt;
     &lt;connectionStrings&gt;
        &lt;add name="ConnectionString" connectionString="Data 
           Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\RegisterDb.mdf;Integrated 
                   Security=True;User Instance=True" 
                   providerName="System.Data.SqlClient" /&gt;
        &lt;add name="DdExamen2ConnectionString" connectionString="Data Source=
          (LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\RegisterDb.mdf;Integrated Security=True"
          providerName="System.Data.SqlClient" /&gt;
     &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>here is the Register.designer.cs</p>
  
  <pre><code>[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="RegisterDb")]
  public partial class RegistersDataContext : System.Data.Linq.DataContext
  {
  
  private static System.Data.Linq.Mapping.MappingSource mappingSource = new 
          AttributeMappingSource();
  
  
         base(global::System.Configuration.ConfigurationManager.ConnectionStrings
             ["ConnectionString"].ConnectionString, mappingSource)
  </code></pre>
  
  <p>I don't see what I am missing? </p>
  
  <p>When I am looking at the Registers.dbml file, I saw the Connection : RegisterConnectionString(WebConfig)   and the connection String is  Data Source=(LocalDb)....
  I am pretty sure this is the problem.   Anyone know how to recreate the ConnectionString ?</p>
  
  <p>I saw 2 files in the web.config file for the connectionString ?  What I did wrong?</p>