[ http://jira.nhibernate.org/browse/NH-216?page=comments#action_14721 ]
Sergey Koshcheyev commented on NH-216:
--------------------------------------
Actually, I don't see the reason for throwing a different exception here - the problem is really a security issue, not a mapping one. And I believe you can find out what the problem is from the stack trace.
> NHibernate should test for Reflection permission and failover if not present
> ----------------------------------------------------------------------------
>
> Key: NH-216
> URL: http://jira.nhibernate.org/browse/NH-216
> Project: NHibernate
> Type: New Feature
> Components: Core
> Versions: 1.2.0.Beta2, beta-0.7
> Reporter: Paul Hatcher
> Assignee: Paul Hatcher
> Fix For: 1.2.0.Beta3
>
> Currently, Hibernate uses Reflection without checking for permission, this causes SecurityExceptions on ASP.NET servers set to Medium security.
> What we should do is check for Reflection permission and raise a MappingException if we do not have it and we are being asked to access other than via public properties/fields.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nhibernate.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|