sqlite でリモート ファイルを読み取ろうとしているのですが、これはサポートされていないことを示すだけです。これに対する回避策はありますか?
ここにエラーを与える関数があります
public void Run(string sql,string check,string file)
{
SQLiteConnection m_dbConnection;
string test = "Data Source=" + file + ";Version=3;";
m_dbConnection = new SQLiteConnection(test);
m_dbConnection.Open();
SQLiteCommand command = new SQLiteCommand(sql, m_dbConnection);
SQLiteDataReader reader = command.ExecuteReader();
if (check == "0")
{
while (reader.Read())
comboBox1.Items.Add(reader["name"] + "." + reader["TLD"]);
comboBox1.SelectedIndex = 0;
}
else
{
proxy = reader["proxyip"].ToString();
check = "0";
}
}
私が得るエラーは「URI形式はサポートされていません」です
ファイル変数は、2 つの値のいずれかで埋められます。
string filelocal = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + "\\unblocker\\sites.db";
また
string remotefile = "http://127.0.0.1/test.db";
エラーを与えるのはリモートファイルです。