I am trying to save user details in my database, whenever i click on save button it shows this error
"Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
See the code below
string dbConnectionString = @"Data Source=database.db;version=3;";
private void btn_save(object sender, RoutedEventArgs e)
{
SQLiteConnection sqliteCon = new SQLiteConnection(dbConnectionString);
try
{
sqliteCon.Open();
string Query = "insert into student (Registration Number,First Name,Last Name,Middle Name,Gender,Age,Contact Address,Contact Phone,Email Address,Class) values('" + this.RegTbx.Text + "','" + this.TbxFn.Text + "','" + this.LnTbx.Text + "','" + this.MnTbx.Text + "','" + this.GenCmb.Text + "','" + this.AgeCmb.Text + "','" + this.AddTbx.Text + "','" + this.PhoneTbx.Text + "','" + this.EmTbx.Text + "','" + this.ClassCmb.Text + "',)";
SQLiteCommand createCommand = new SQLiteCommand(Query, sqliteCon);
createCommand.ExecuteNonQuery();
MessageBox.Show("Saved");
sqliteCon.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
Kindly help