Mono.Data.Sqlite for .NET 4.0/4.5


Me again.. I have been working on a few projects of late that require a .net application to work both on Windows and Linux. I found to my surprise that Mono has a bug under Windows that causes the following error when ran under .net 4.0/4.5.

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)
   at Mono.Data.Sqlite.SqliteConnection.Open()

Anyway long story short, if you are trying to use Sqlite3 and the Mono.Data.Sqlite.dll, you may want to download this altered version with the bug fix included.

I have not done anything fancy, just downloaded the Mono source and recompiled the Mono.Data.Sqlite.dll with the correct assembly attributes to run under .net 4.0/4.5.

This is nothing new and is a known bug, but I thought I would share since I was not able to find a recompiled version online with the fix included.

MassMail V2.0.0.2 Beta 3 Released BETA 3
  – Fixed a startup bug where no database is selected.
  – Started optimizing the user interface. (added send button)
  – Fixed a bug in the send mail function causing multi messages.
  – Fixed a bug in recipient management, crash when no recipients exist.
  – Fixed a bug that caused group names to be duplicated.
  – Fixed a bug that caused invalid servers to be saved.
  – Fixed converter issue with groups not saving.


MassMail Version Released

Another version of MassMail has hit the public domain today. *.2.4 fixes some of those annoyances from the previous versions.

Here are the highlights:-

 – Restored Windows shortcuts.
  – Added embedded content items to menu for quick use.
  – moved some controls on main form.
  – Removed context menu from editor.
  – Fixed log windows location.
  – Converted Version.txt to Windows native format.

Download it at:

MassMail Released
  – Added group check to import recipients.
  – Added group check to export recipients.
  – Added check to remove recipient.
  – Switch to release to omit debug information.
  – Added resizing, maximizing, minimizing to recpients manager.
  – Added edit recipient feature to recipient manager.
  – Altered treeview in recipients manager to automatically expand the whole tree.
  – Added message to function of the recipients manager.
  – Improved some error messages.
  – Added group check for move recipient.


Version is now live. I have fixed a typo in the standing order/direct debit system that caused it not to save.
I am working on improving the direct debit system to feature a more variable structure, mimicking real life direct debits.

Site bug fixed

I have fixed a small javascript bug on the site that prevented Internet Explorer users viewing the site correctly.

Everything should be fine now.