Unable to access .mdf file after installing application using Visual Studio setup project
问题 I have created a WPF application. I am using Visual Studio setup project to create application setup. In my application, I have a local database which is located in project folder (Application folder). When I install the application to any other drive than C: drive (operating system drive), then it is working fine. But when I install the application to the C: drive, then my application is not able to access the database file. Also, when I attach the database to SQL Server Management Studio,