Rendering a control generates security exception in .Net 4
- by Jason Short
I am having a problem with code that worked fine in .Net 2 giving this error under .Net 4.
Build (web): Inheritance security
rules violated while overriding
member:
'Controls.RelatedPosts.RenderControl(System.Web.UI.HtmlTextWriter)'.
Security accessibility of the
overriding method must match the
security accessibility of the method
…