I have Visual Studio 2008 and SQL Server 2008 Developer Edition installed on a Windows XP machine.
I get this error when trying to work on a Test Web Application:
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)
My ADO.NET connection string is:
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\TestDB.mdf;Integrated Security=True;User Instance=True
Shouldn't a full install of SQL Server know how to handle SQL Express databases? Am I missing an install of something I need to work on an "attached" database? or do I still need to configure something? I think this has just worked for me (out-of-the-box) in the past.
update:
My intention is to use this as an Express DB even though I have a full-blown 2008 instance running. Can't you do this? Doesn't ASP.NET steer you towards one of these "express" databases by default when you try to use its Membership functionality?