CodeAcces Security + Inheriting WebControl
When I run fxcop on my custom control I get the following error:
The virtual method 'RenderContents' in type 'WebControl'
and its override 'RenderContents' do not have the same
LinkDemand status. Add a LinkDemand where it is missing
If a virtual method has a LinkDemand, in many cases,
so should any override of it, and if an override has
a LinkDemand, so should the overridden virtual method.
But permview /DECL does not give any persmissions on this method.
Setting [AspNetHostingPermission(SecurityAction.LinkDemand)] on both the
class and method does not provide a solution.
Setting FullTrust (like in MSDN) seems a bit odd to me (whats Code Access
Security goal if you just need FullTrust).
Hope somebody nows the internals.
|All times are GMT. The time now is 11:16 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.