ive 원격 파일을 읽으려고 sqlite를 얻으려고했으나이 파일에 대한 해결책이 없다는 사실을 플랫 파일에 알려줍니다. 여기 URL을 사용하여 원격 파일에 연결하는 Sqlite C#
내가 얻을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";
}
}
에러
파일 변수는 2 개 값 중 하나로 충전된다 "URI 포맷이 지원되지 않습니다"인 에러를 제공하는 기능이다.
string filelocal = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + "\\unblocker\\sites.db";
또는
string remotefile = "http://127.0.0.1/test.db";
오류를 제공 한 원격 파일이다.
어떤 오류가 발생합니까? 정확한 오류. – CloudyMarble
매개 변수 파일의 정확한 값은 무엇입니까? – CloudyMarble