Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The following error occurred while connecting the sq lite database

<pre><code><small><pre></pre></small></code><pre lang="msil">System.Data.SQLite.SQLiteException: File opened that is not a database file
file is encrypted or is not a database
at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String&amp; strRemain)
at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
at System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
at System.Data.SQLite.SQLiteDataReader.NextResult()
at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
at System.Data.SQLite.SQLiteConnection.Open()
at Sqlite.Sqlite.MakeConnection(String Connection) in C:\Documents and Settings\user\Desktop\DBSQlite\Sqlite.cs:line 19
at DBSQlite.DBSQlite.Fetch_TabData(String qry, String Connection) in C:\Documents and Settings\user\Desktop\DBSQlite\DBSQlite.cs:line 20
at Service.TotalPeacks() in e:\WorkingProjects\dotaprotocol\App_Code\Service.cs:line 36</pre>
</pre>
Posted

1 solution

That's because of version change of your sqllite db
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900