title: Unable to connect to SQL Server database
body: <p>I'm creating a web application in mvc 4.0 and I need to enable Membership and Authorization using Asp.netWeb Site Administration Tool but when I clicks the security tab it gives me an error</p>
  
  <blockquote>
    <p>There is a problem with your selected data store. This can be caused
    by an invalid server name or credentials, or by insufficient
    permission. It can also be caused by the role manager feature not
    being enabled. Click the button below to be redirected to a page where
    you can choose a new data store.  The following message may help in
    diagnosing the problem: Unable to connect to SQL Server database.</p>
  </blockquote>
  
  <p>and my connection string is given below</p>
  
  <pre><code> &lt;connectionStrings&gt;
      &lt;add name="MusicStoreEntities"
      connectionString="Data Source=|DataDirectory|MvcMusicStore.sdf"
      providerName="System.Data.SqlClient"/&gt;
    &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>I cant find any error in the code so please help me</p>