I\'ve created a database windows application using in C#. My application is running successfully on Windows XP, but it doesn\'t properly execute on Vista or Windows 7 system
I ran into this related to localdb, the file is named:
myfolder/mysolution/myproject/App_Data/something.mdf
The way I fixed it is to right-click on the top level folder (myfolder
) and then choose Properties
, then choose Edit
, then select Users
, add to users either the Modify
permission or both Modify
and full control (this is a development environment) and then click apply.
So in other words, in my experience, it doesn't matter what folder you put the localdb in, you just need to give Users permission to write.