Saturday, 24 August 2013

Inheritance security rules violated while overriding member Castle.Components.Validator

Inheritance security rules violated while overriding member
Castle.Components.Validator

Good morning,
Today to publish my site, I came across this error:
'Castle.Components.Validator.ValidationException.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.
Various materials on the web talk about security rules, ask to be included
in the methods that are overriden [SecurityCritical] or trust level =
"Full" in web.config.
I tried to change as references on the internet, but did not succeed.
Anyone experienced this situation?
Note: I'm not using Castle.Components.Validator
Thank you!

No comments:

Post a Comment