Here is a sample code that returns the current trust level, assuming this code (or the calling code up the stack), is not loaded from GAC: AspNetHostingPermissionLevel GetCurrentTrustLevel() { foreach (AspNetHostingPermissionLevel trustLevel in new AspNetHostingPermissionLevel
Read More...