title: .mdf file not able to attach at runtime MVC4
body: <p>ERROR:</p>
  
  <blockquote>
    <p>Cannot attach the file 'C:\Users\dboyle\Desktop\New folder 
    (2)\OilNGasWeb\OilNGasWeb\App_Data\aspnet-MvcApplication4-20130726115749.mdf' as database 'aspnet-MvcApplication4-20130726115749'.</p>
  </blockquote>
  
  <p>*<em>This error occured after deleting my Web.config file *</em>( replacing it with a new one from a new project and replacing the default conection string with what i needed)</p>
  
  <p>EDIT:</p>
  
  <p>Sofar I have tried deleting the .mdf physical file and from VS, also from SQL. Then re-running the update from the package manager within VS. The database gets made, yet same error persists.</p>
  
  <p>I have found </p>
  
  <pre><code>    &lt;ObjectGroup Name="DefaultConnection" Order="1" Enabled="False"&gt;
        &lt;Destination Path="Data Source=ANE-SQL\ANESQLSERVER;Initial Catalog=OilGas;User ID=software;Password=GLvp$102" /&gt;
        &lt;Object Type="DbCodeFirst"&gt;
          &lt;Source Path="DBMigration" DbContext="OilNGasWeb.Models.OilNGasDB, OilNGasWeb" MigrationConfiguration="OilNGasWeb.Migrations.Configuration, OilNGasWeb" Origin="Configuration" /&gt;
        &lt;/Object&gt;
     &lt;/ObjectGroup&gt;
  </code></pre>
  
  <p>in my website.pubxml file ( it still shows my old database name ) will this interfier?</p>