【发布时间】:2015-01-05 12:54:28
【问题描述】:
WindowsServer 2012 上的 IIS,ASP.NET MVC
将 IIS 8.5 站点作为 LocalSystem 运行是非常糟糕的,但这是我可以让这个 exe 运行的唯一方法。我需要能够让网站运行这个:
var pdfProcess = new Process();
pdfProcess.StartInfo.FileName = SomeExeInProgramFiles;
pdfProcess.StartInfo.Arguments = stuff;
pdfProcess.StartInfo.WorkingDirectory = docPath; //!!!!This is really important!!!!!
pdfProcess.Start();
运行 windows 2012,如何让我的 AppPoolIdentity 站点从 Program Files 运行上述 exe(仅)?
我已授予对包含 exe 到 IIS APPPOOL\my 池名称的文件夹的完全控制权作为测试,但它仍然无法运行。仅当我将应用程序池设置为在 LocalSystem 下运行(yicks)
注意:EXE 是需要运行才能执行任务的工具。我们别无选择,只能根据网站的要求运行它。我们没有编写或访问该 exe。
【问题讨论】:
-
请扩展“不会运行”。究竟是什么症状(包括错误消息)。也许您可以使用进程监视器technet.microsoft.com/en-au/sysinternals/bb896645.aspx 来识别您需要的安全性。
-
运行进程监视器提示没有错误,调用中的exe也没有返回错误。它只是没有做任何事情。任务管理器也不显示exe。只有当我切换到 LcoalSystem 时,exe 才会运行并出现在任务管理器中。
-
你检查过windows事件日志和IIS日志吗?
-
IIS 或 EventVwr 中没有任何内容。当 exe 被调用时,它就会蒸发掉。
标签: c# asp.net iis asp.net-mvc-5