Medium-Trust ASP.NETアプリケーションから新しいプロセスを実行できますか?
-
28-09-2019 - |
質問
私は私が使いたいASP.NET MVCサイトを構築しています openstv 世論調査を実施する。 OpenSTVを介して結果を実行するには、実行可能ファイルを実行する必要があります。 それはミディアムトラストから許可されています ASP.NETアプリケーション?
解決
インスタンス化することはできません 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
所属していません StackOverflow