0

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.

Hugh
  • 450
  • 3
  • 13
stutski
  • 5
  • 4

1 Answers1

0

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

Community
  • 1
  • 1
Hugh
  • 450
  • 3
  • 13