I am using 2010 ultimate and just build a simple windows forms application. Just added a database as well to the form. Pull the application file out of bin directory. Tried to run but got error as unable to attach database? Installed Microsoft SQL Server Compact 4.0 and got same error? What am i dong wrong?
Error:
An attempt to attach an auto-named database for file C;\Users\Admin\Desktop\Database1.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share
The reason i am getting a error is because i was trying to run the app file without the database in the same folder, in this case the desktop. I am currently trying to rectify this. I think i will go with a ado.net entity database online and forget integrating a local database with the desktop application. –