views:

39

answers:

2

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 methods. Thanks!

A: 

You need to set trust level medium in your web.config file

Adeel
@adeel, how does that determine if a method/class will run in medium trust, exactly?
Sky Sanders
+1  A: 

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
{
Sky Sanders