title: Web Site Administration Tool:Unable to connect to SQL Server database
body: <p>I am developing an ASP.NET MVC3 application using,</p>
  
  <ol>
  <li>MS SQL Server Pro 2008</li>
  <li>MS VS 2010 pro</li>
  <li>Entity FrameWork as model class.</li>
  </ol>
  
  <p>When i start ASP.NET Web Site Administration Tool by clicking ASP.NET Configuration from solution explorer, in Security tab it shows an error:</p>
  
  <p><strong>Unable to connect to SQL Server database.</strong></p>
  
  <p>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config has a connection string as,</p>
  
  <pre><code>&lt;connectionStrings&gt;
          &lt;add name="LocalSqlServer" connectionString="data   source=.\MSSQLSERVER;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>I opened the 
  C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regsql.exe
  and configure the database default named 'aspnetdb'. But situation is not being improved. So, would you please help me to solve it. 
  Thank you.</p>