IIS on WindowsServer 2012,ASP.NET MVC
将IIS8.5站点作为LocalSystem运行是非常糟糕的,但这是我能够让这个exe运行的唯一方法。我需要让这个网站运行这个:
var pdfProcess = new Process();
pdfProcess.StartInfo.FileName = SomeExeInProgramFiles;
pdfProcess.StartInfo.Arguments = stuff;
pdfProcess.StartInfo.WorkingDirectory = docPath; //!!is really important!!!
pdfProcess.Start();运行windows 2012,如何让我的AppPoolIdentity站点从程序文件中运行上面的exe (仅)?
我已经将包含exe的文件夹完全控制到IIS APPPOOL\my池名作为测试,但它仍然无法运行。只有当我将应用程序池设置为在LocalSystem下运行时(yicks)
注意: EXE是一个需要运行来执行任务的工具。我们别无选择,只能根据网站的要求运行它。我们没有编写或访问exe。
发布于 2014-11-09 00:36:11
尝试在Application Pools Advanced Settings中设置该Advanced Settings。
然后,我认为您应该能够使用ApplictionPoolIdentity执行进程,这样就可以避免使用LocalSystem帐户。

https://stackoverflow.com/questions/26823149
复制相似问题