0

我正在构建一个 ASP.NET MVC 站点,我想在其中使用OpenSTV进行投票。要通过 OpenSTV 运行结果,我必须运行可执行文件。中等信任的ASP.NET 应用程序是否允许这样做?

4

1 回答 1

2

除非System.Diagnostics.Process您在FullTrust.

如果您检查装饰类的属性,您会看到以下需求FullTrust

进程类 (MSDN)

[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[HostProtectionAttribute(SecurityAction.LinkDemand, 
        SharedState = true, Synchronization = true, 
    ExternalProcessMgmt = true, SelfAffectingProcessMgmt = true)]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public class Process : Component
于 2010-10-07T08:22:41.023 回答