I gave a site full trust however I am still getting some security exceptions.
How can I confirm a website has full trust?
I gave a site full trust however I am still getting some security exceptions.
How can I confirm a website has full trust?
You can use the SecurityManager.IsGranted to check for a particular grant set. For example, this will test for full trust ...
var perm = new FileIOPermission(PermissionState.Unrestricted);
var fullTrust = SecurityManager.IsGranted(perm);
In your web.config file...
<system.web>
<trust level="Full"/>
. . ..
</system>
Source
The new way to check is this:
AppDomain.CurrentDomain.PermissionSet.IsUnrestricted()