connection string - ASP.NET Invalid value for key 'attachdbfilename' -
the next error pops when initialize sqlconnection
object:
invalid value key 'attachdbfilename'.
i have tried solve issue hours (also tried of advices find on so), no success.
this connection string:
data source=(localdb)\v11.0;attachdbfilename=|datadirectory|users.mdf;integrated security=true
users.mdf
located in app_data
folder.
i using visual studio 2012 ultimate, .net ver 4.5, sql server 2012. issue started after formatted main driver, , installed software mentioned above.
thanks, guy
that seems connection string sql server express edition.
do have express edition installed on dev machine?
i faced same issue , workaround create database named users
in non-express edition of sql server.
assuming have non-express edition installed, need attach existing users.mdf
sql server database. http://www.sqlservercentral.com/forums/topic590254-360-1.aspx
connection string: server=localhost;database=newdatabasename;user id=myusername;password=mypassword;
Comments
Post a Comment