I've had some problems connecting with my database in a web application. The database is a .mdf and sits in my App_Data Folder. I'm using IIS 7.5 to run and debug my website.
I got following error:
Troubleshoot Error: An attempt to attach an auto-named database for file database location failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
I came up with this solution:
BUT this involves leaving my computer's login and password wide open in the web.config. As you may understand, I'm not too happy about that... Is there a way to hide my password from the web.config or solve this problem otherwise? Thanks.