when i try to use a sql sentence i juts get this error:
An attempt to attach an auto-named database for file C:\Documents and Settings\User1\Desktop\aweb1\User\App_Data\ASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
now i am stucking with this for days now and it's quite urgent to fix it quikly
please can somebody help?

how do i do that?
"I had exactly the same error when setting up a new database for logging. The problem was solved when I discovered the file permissions for both the mdf and ldf were incorrect. To ensure that ASP.NET can access these files from the App_Data folder you will need to set to Inherit from parent the permission entries that apply to child objects as seen in the Advanced file security settings.

"

WOW I think i solved it!!!
i changed the name of the DATABASE in the folder, after that i created a new "App_Date" folder and put the DATABASE in it, after that i verified that the conncction is really to this folder and now it present a sql!

MANY MANY THANKS :D!

:) If you are done with you problem then mark this thread as solved before leaving

login in control panel and give rights to this .mdf file for read,write and exectue

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.