title: Error when connecting to .mdf from ASP.NET (C#)
body: <p>When trying to connect to a .mdf databse in ASP.NET (using c#) I am given 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: 26 - Error Locating
    Server/Instance Specified)</p>
  </blockquote>
  
  <p>Does this mean my connection string is wrong? What should it be?</p>
  
  <p>Aside from that, I am very new to ASP.NET. I am trying to connect to this database in the same way I would in c# normally (using data adapters and SqlCommands). Is this the right way to go about it, or is there a different way? When I started a new website adding user accounts worked (there was a wizard or something?) but I couldn't work out how to add more user information. What is the best way to connect to an SQL database and add user accounts with login and personal details in ASP.NET?</p>
  
  <p><strong>EDIT:</strong> My Connection String is <code>data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\Users.mdf;User Instance=true</code></p>