title: How to connect to (localdb) database on server for Asp.Net membership?
body: <p>I'm trying to output a list of users <code>membership.GetAllUsers()</code>, but I get an exception: </p>
  
  <blockquote>
    <p>When establishing a connection to SQL Server error has occurred that
    is associated with the network or with a specific instance. Server not
    found or unavailable. Verify that the instance name is correct and
    that SQL Server is configured to allow remote connections. (provider:
    SQL Network Interfaces, error: 26 - Error upon detection of the
    specified server or instance)</p>
  </blockquote>
  
  <p>My connection string :</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="DefaultConnection" 
           connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-SDC-20150804171038;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-SDC-20150804171038.mdf" 
           providerName="System.Data.SqlClient" /&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>I have done  the test  connection in Server Explorer successfully. I think that the problem is neither in connection string nor in Server. </p>
  
  <p>Do I need to override the membership in order to use the method getallusers()?</p>