What's the easiest way to determine if a method call will run under Medium Trust?
Is there a quick way to determine if a method call will run under medium trust? In this scenario, I'm specifically wanting to know about trust-level requirements for .NET Framework method开发者_运维技巧s. Thanks!
Check MSDN or use Reflector to check attributes.
This is just an example of the type of attribute you will be looking for.
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public static class ProfileManager
{
You need to set trust level medium in your web.config file
精彩评论