asp.net - Attached DB Can login but not create user "invalid value for key 'attachdbfilename'" -


i have application running on our server (it works fine on computer not matters). windows server 2003, sql express 2008 r2 server.

im using attached db storing users (the asp.net supplied db).

i can login web application no problem when try create user says invalid value key 'attachdbfilename' yellow screen of death.

here have connection string in web.config

<add name="connectionstringaspnetdb.mdf" connectionstring="data source=localhost\sqlexpress_2008;attachdbfilename=|datadirectory|\aspnetdb.mdf;integrated security=true;user instance=true" providername="system.data.sqlclient" /> 

and membership provider

<add name="daganteckning" type="system.web.security.sqlmembershipprovider, system.web, version=2.0.3600.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"                 connectionstringname="connectionstringaspnetdb.mdf"                 enablepasswordretrieval="false"                 enablepasswordreset="false"                 requiresquestionandanswer="false"                 applicationname="/"                 requiresuniqueemail="false"                 passwordformat="hashed"                 description="stores , retrieves membership data microsoft sql server database." /> 

my guess there sort of directory/file security permission must set have no idea user iis/sql uses access database file.

any 1 got idea?

edit: tryed replacing localhost\sqlexpress_2008 .\sqlexpress_2008 , got

unable open physical file "c:\inetpub\wwwroot\medlem_test\app_data\aspnetdb.mdf". operating system error 32: "32(the process cannot access file because being used process.)". attempt attach auto-named database file c:\inetpub\wwwroot\medlem_test\app_data\aspnetdb.mdf failed. database same name exists, or specified file cannot opened, or located on unc share.

check if server's antivirus or other process accessing file.

you try recycling application after making change listed.

also if use asp.net configuration tool attach mdf file , application create error while connected through that.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -