我正在构建一个 ASP.NET MVC 站点,我想在其中使用OpenSTV进行投票。要通过 OpenSTV 运行结果,我必须运行可执行文件。中等信任的ASP.NET 应用程序是否允许这样做?
问问题
226 次
1 回答
2
除非System.Diagnostics.Process
您在FullTrust
.
如果您检查装饰类的属性,您会看到以下需求FullTrust
:
[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 回答