I am using NHibernate in a desktop application and has a question on hibernate.use_reflection_optimizer. For some reason, if I use NUINT (2.4.1 with .Net 2.0) to do my testing, it has a problem with reflection permission exception. I try to add
[assembly: ReflectionPermission(SecurityAction.RequestMinimum, Flags = ReflectionPermissionFlag.MemberAccess)]
in my unit testing's DLL AssemblyInfo.cs but w/o any luck.
Anybody have any ideas what permission I need to set and where I should set it ???
Thanks
|