When trying to use Mono on OSX to run an existing website, I was getting the above error thrown by NHibernate. Thanks to this post by "sta.blockhead" I was able to understand that switching my NHibernate adonet.batch_size configuration to zero will bypass the issue.