How to change permissions of AppDomain?
问题 I use special method to create sandobx: internal static class Helper { public static AppDomain CreateSandbox() { Contract.Ensures(Contract.Result<AppDomain>() != null); var platform = Assembly.GetExecutingAssembly(); var name = platform.FullName + ": Sandbox " + Guid.NewGuid(); var setup = new AppDomainSetup { ApplicationBase = platform.Location }; var permissions = new PermissionSet(PermissionState.None); permissions.AddPermission(new FileIOPermission(FileIOPermissionAccess.Read |