.net SQLite找不到这样的表:moz_位于C中#

.net SQLite找不到这样的表:moz_位于C中#,.net,sqlite,.net,Sqlite,我正在做的任务是在我的桌面应用程序中获取Mozilla Firefox的历史记录这里是我的代码,但我得到的错误是没有找到这样的表:moz_places,我搜索了每个地方,但我没有找到解决方案。 我得到了他的推荐信 及 这是我的错误快照…任何建议都将不胜感激 关闭firebox-将路径设置为硬编码:string Mozilla=“c:/users/u1/…”生成项目,从windows资源管理器(而不是从visual studio)以管理员身份运行。。。您可以使用打开文件,查看这些表是否存在。CL的

我正在做的任务是在我的桌面应用程序中获取Mozilla Firefox的历史记录这里是我的代码,但我得到的错误是没有找到这样的表:moz_places,我搜索了每个地方,但我没有找到解决方案。 我得到了他的推荐信 及

这是我的错误快照…任何建议都将不胜感激


关闭firebox-将路径设置为硬编码:string Mozilla=“c:/users/u1/…”生成项目,从windows资源管理器(而不是从visual studio)以管理员身份运行。。。您可以使用打开文件,查看这些表是否存在。CL的可能副本:不,我试过了。。。。
 private void button2_Click(object sender, EventArgs e)
        {

            string Mozilla = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Mozilla\Firefox\Profiles\iv6i2j75.default\places.sqlite";
            SQLiteConnection cn = new SQLiteConnection("Data Source=" + Mozilla + ";Version=3;New=False;Compress=True;");
            cn.Open();
            SQLiteDataAdapter sd = new SQLiteDataAdapter("select url,title,visit_count,last_visit_date from moz_places", cn);
            DataSet ds = new DataSet();
            sd.Fill(ds);
            dataGridView1.DataSource = ds.Tables[0];
            cn.Close();
        }