title: Entity Framework and Membership Provider not working
body: <p>I had an application which used the Asp.net Membership provider. I converted this project to EF4 and trying to use the same authentication.</p>
  
  <p>I am using the old DB for my connection as</p>
  
  <pre><code>&lt;add name="Entities1" 
       connectionString="metadata=res://*/DbContext.csdl|res://*/DbContext.ssdl|res://*/DbContext.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\Master.mdf;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&amp;quot;" 
       providerName="System.Data.EntityClient" /&gt;
  &lt;add name="PondsMasterEntities" 
       connectionString="metadata=res://*/DbContext.csdl|res://*/DbContext.ssdl|res://*/DbContext.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\PondsMaster.mdf;integrated security=True;connect timeout=30;MultipleActiveResultSets=True;App=EntityFramework&amp;quot;" 
       providerName="System.Data.EntityClient" /&gt;
  </code></pre>
  
  <p>And now I am ending with this error.</p>
  
  <blockquote>
    <p>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: 50 - Local Database Runtime error occurred. The specified LocalDB instance does not exist</p>
  </blockquote>
  
  <p>on</p>
  
  <pre><code>var result = await UserManager.CreateAsync(user, model.Password);
  </code></pre>
  
  <p>But when I use like this. I can add delete entries from the DB.</p>
  
  <pre><code>private Entities1 db = new Entities1();
  db.IssueMasterLogs.Add(log);
  </code></pre>
  
  <p>Any thoughts?</p>