///
/// 获得当前应用程序的信任级别
///
///
public static AspNetHostingPermissionLevel GetTrustLevel()
{
AspNetHostingPermissionLevel trustLevel = AspNetHostingPermissionLevel.None;
//权限列表
AspNetHostingPermissionLevel[] levelList = new AspNetHostingPermissionLevel[] {
AspNetHostingPermissionLevel.Unrestricted,
AspNetHostingPermissionLevel.High,
AspNetHostingPermissionLevel.Medium,
AspNetHostingPermiss