Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

CA2123 and SharePoint 2010 application page

$
0
0

I have a SP2010 application page to which I want all authenticated users to be able to navigate.

public partial class AllWorkspacesTreeDisplay : LayoutsPageBase { protected override void OnLoadComplete(EventArgs e) { base.OnLoadComplete(e); // DO SOME WORK

}

}

When running Code Analysis on this I get the following

CA2123 Override link demands should be identical to base
Add the following security attribute to 'AllWorkspacesTreeDisplay.OnLoadComplete(EventArgs)' in order to match a LinkDemand on base method 'LayoutsPageBase.OnLoadComplete(EventArgs)':  [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")].
xxx.xxx.WorkSpace - AllWorkspaces.aspx.cs (Line 12)

Bearing in mind I want all authenticated users to be able to access that page (hence inheriting from LayoutsPageBase), what should I do?


Maz





Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>