in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

SQLite Exception "Unable to open the database file"

Last post 07-15-2009 7:58 AM by Robert Simpson. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-01-2009 2:16 AM

    SQLite Exception "Unable to open the database file"

    Dear all,

    As first really thanks for all the helps you are providing.

    If possible I have a little question, but please, consider me an absolute beginner.

    I'm tryng to develop a little test application for smart device using C# and SQLite.

    After the creation of the DB and the related schema, if I debug my application, I will recive the following message:

    "Unable to open the database file" as SQLite exception.

    The related code is generated automatically from the shema:

     public virtual int Fill(Food_Intake_DBDataSet.FoodDataTable dataTable) {
                this.Adapter.SelectCommand = this.CommandCollection[0];
                if ((this.ClearBeforeFill == true)) {
                    dataTable.Clear();
                }
                int returnValue = this.Adapter.Fill(dataTable);
                return returnValue;
            }

    Filed under: , ,
  • 07-15-2009 7:58 AM In reply to

    Re: SQLite Exception "Unable to open the database file"

    Not enough information here to help.

    Are you writing a desktop app?  ASP.NET page?  Desktop?  Compact Framework?  What does your connection string look like?  Are you running in full trust or medium trust?

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems