i tried to add a database file to an exsiting Website project. i get this error.

"connection to SQL Server files (*.mdf) require SQL server express 2005 to function properly."

installed products are
visual studio 2008 sp1
sql server 2008

however creating a data connection to a database attached with the server is not a problem.
is there a workaround to this issue.

I'm experiencing the same problem (also VS 2008 SP1). My machine.config has:
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.