title: Entity Framework Connection to localDb
body: <p>I am trying to follow the pluralsight course ASP.NET MVC 4 Fundamentals. But can't have my database connected.</p>
  
  <p>Here is the error I got: </p>
  
  <blockquote>
    <p>An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.</p>
  </blockquote>
  
  <p>I have visual studio 2013 professional and SQL server 2012 installed on my machine. When I installed my SQL server, I created a server name "ABC" on my computer.</p>
  
  <p>I have also installed sql localdb 11.0 separately, but it seems VS can't find the localDb connection. When I check Server Explorer -> add Connection, under server name list, only "ABC" is shown up. </p>
  
  <p>Here is the connection string. </p>
  
  <p>I also tried to use "Data Source = ABC; ...." it doesn't work either.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Here is my connection string</p>
  
  <pre><code>&lt;add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-eManager.Web-20141223223418;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-eManager.Web-2014122322341‌​8.mdf" providerName="System.Data.SqlClient" /&gt;
  </code></pre>