title: Issue when deploying an ASP.NET MVC + LocalDB application
body: <p>I have deployed my ASP.NET MVC 5 application on a server but it crashes on every page using the localdb.</p>
  
  <p>Yet I copied the <code>App_Data</code> folder where the <code>.mdf</code> file is located. And I even installed SQL Server 2012 Express on the machine.</p>
  
  <p>Nevertheless every time I get the same error.</p>
  
  <blockquote>
    <p>Le fichier spécifié est introuvable<br>
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
    
    <p>Exception Details: System.ComponentModel.Win32Exception: Le fichier spécifié est introuvable</p>
    
    <p>Source Error: </p>
    
    <p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  </p>
    
    <p>Stack Trace: </p>
    
    <p>[Win32Exception (0x80004005): Le fichier spécifié est introuvable]<br>
    [SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)]<br>
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5352431  </p>
  </blockquote>
  
  <p>Sorry, a part of it s in french despite I set the ui to us-english.</p>
  
  <p>The <code>web.config</code> file looks like this:</p>
  
  <pre><code>&lt;connectionStrings&gt;
     &lt;add name="ConnectionString" 
          connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=C:\inetpub\wwwroot\MygLogWeb\App_Data\Database.mdf;Integrated Security=True" 
          providerName="System.Data.SqlClient"/&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>And it was like this before:</p>
  
  <pre><code>&lt;add name="ConnectionString" 
       connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True" 
       providerName="System.Data.SqlClient"/&gt;
  </code></pre>