System.Data.SQLite.SQLiteException (0x80004005): file is encrypted or is not a database file is encrypted or is not a database

I was using version 6 until downloading and installing version 7. At the end of update process, i receive the following error :

System.Data.SQLite.SQLiteException (0x80004005): file is encrypted or is not a databasefile is encrypted or is not a database
   à System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
   à System.Data.SQLite.SQLiteCommand.BuildNextCommand()
   à System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
   à System.Data.SQLite.SQLiteDataReader.NextResult()
   à System.Data.SQLite.SQLiteDataReader…ctor(SQLiteCommand cmd, CommandBehavior behave)
   à System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   à System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   à System.Data.SQLite.SQLiteConnection.Open()
   à MailClient.Storage.Data.DataStore.GetConnection(String relativeName)
   à DbRepair.CorruptionChecker.CheckCorruption()
   à DbRepair.FormCheck.Check(Object state)

The same error occur when traying to start emclient, and then no way th resume !

Please Help

Hello Mohamed,
the problem is with accessing the database.
Have you changed your database location?
Is the database folder encrypted?
Have you made any changed to the disc where your database is located?

Default database location is C:\Users%windows user account%\AppData\Roaming\eM Client

Regards,
Olivia

Hello Olivia,

Thank you for your response.

As written above, i did simply install the downloaded file (version7). No other action taken. The Database location was not changed and the Database folder is not encrypted. 

I did uninstall version 7 and reinstall versin 6. Every thing is OK now. 

Please find below the last lines from the file sqlite.log, it may be usefull for diag :

10/31/2016 12:15:14 1 no such table: mail_fti.SubjectIndex_stat
10/31/2016 12:15:14 1 no such table: mail_fti.AddressIndex_stat
10/31/2016 12:15:17 1 no such table: mail_fti.LocalMailsIndex3_stat
11/01/2016 09:35:58 1 no such table: mail_fti.SubjectIndex_stat
11/01/2016 09:35:58 1 no such table: mail_fti.AddressIndex_stat
11/01/2016 09:35:58 1 no such table: mail_fti.LocalMailsIndex3_stat
11/01/2016 10:53:56 26 file is encrypted or is not a database
11/01/2016 10:55:39 26 file is encrypted or is not a database
11/01/2016 11:11:13 26 file is encrypted or is not a database
11/01/2016 11:13:17 26 file is encrypted or is not a database
11/01/2016 11:13:29 26 file is encrypted or is not a database
11/01/2016 11:13:40 26 file is encrypted or is not a database
11/01/2016 11:19:40 26 file is encrypted or is not a database
11/01/2016 11:26:56 26 file is encrypted or is not a database
11/01/2016 11:46:35 1 no such table: mail_fti.SubjectIndex_stat
11/01/2016 11:46:35 1 no such table: mail_fti.AddressIndex_stat
11/01/2016 11:46:38 1 no such table: mail_fti.LocalMailsIndex3_stat

Regards.