i have developed a c#
application including a local database. When i create a installshield
setup and install the application, the application reads the data correctly from database but it is not possible to insert or update data into the database.
I get the error message that the database is "readonly".
The database is in the installation folder. When i install the database in AppData
folder, then the application didn't work because the application search the database in the install folder.
How can i solve this problem?
Hope some guys can help me.
Thank you.
Update the app.config
connectionString to point to the AppData
folder. Here's an example:
How to use Application Data in an (App.config) connectionString
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.