title: Unable to connect to the asp.net database for membership
body: <p>I'll go straight to the issue. I was using the membership feature a while ago and I was ok and didn't have any problems. I had to reinstall the whole windows for some reasons, and also reinstalled the visual studio and sql server among with that. Now I'm trying to connect to the membership database: I have a Create User Wizard control and I'm trying to create a new account. That simple. but I get the following error:</p>
  
  <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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)</p>
  
  <p>This error is also displayed when I try to login to an account,  although it doesn't exist!</p>
  
  <p>I've also tried to install the databases manually using regsql tool and this script: aspnet_regsql -S (local) -E -A all</p>
  
  <p>Well, I get the same error again (error 40)</p>
  
  <p>About the version, I guess I'm using Sql Server 2008 Express. I got the following output when I executed this query: "SELECT @@version"</p>
  
  <p>Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (Intel X86) 
      Mar 29 2009 10:27:29 
      Copyright (c) 1988-2008 Microsoft Corporation
      Express Edition on Windows NT 6.1  (Build 7600: )
  I didn't find any answer for this situation. Can anyone help me?</p>