Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 10793 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
Unhandled Exception: System.TypeLoadException: Inheritance security rules violated by type: 'Mono.Data.Sqlite.SqliteConnectionHandle'. Derived types must either match the security accessibility of the base type or be less accessible.
at Mono.Data.Sqlite.SQLite3.Open(String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool)
I'm getting this same error. I'm using Mono 2.10.9 on Windows 7.
using System; // version 4.0
using Mono.Data.Sqlite; // version 4.0
public class CreateSQLiteDatabase
static void Main()
//connection string from example in http://www.mono-project.com/SQLite
string cs = "URI=file:SqliteTest.db,version=3";
SqliteConnection con = new SqliteConnection(cs);
con.Open(); //this line trigger the execution error
Actually, I take it back. This error is probably due to my inexperience with how to use Mono.
I get the error above if I run the executable directly, i.e.,
command prompt> CreateSQListDatabase.exe
But I found if I run it with mono explicitly, I get no error, i.e.,
command prompt> mono CreateSQListDatabase.exe