I'm getting this error from Nhibernate 4.1.0 in release mode with c# ASP.NET application on .NET 4.5.1:
Inheritance security rules violated while overriding member: 'Antlr.Runtime.RecognitionException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.
Being Antl3 an included dll I can't figure out what is the problem