The 'ConnectionState' exists in both 'System.Data.Common, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
bool flag2 = this.sqlite_conn.State != ConnectionState.Open;
if (flag2)
{
this.sqlite_conn.Close();
this.sqlite_conn.Open();
}
Getting above error in this line of code while using dnspy. Error code is CS0433 from main.cs
this.sqlite_conn.State != ConnectionState.Open;? Close the connection? I think this can not compile. What aboutthis.sqlite_conn.Close();? - Tomas PaulConnectionStateis in two assemblies. Try specify assembly you want to use. I guess it can bethis.sqlite_conn.State != System.Data.ConnectionState.Open;- Oleg Kyrylchuk