IIS本地系统将只运行exe文件我 [英] IIS LocalSystem only will run my exe

查看:207
本文介绍了IIS本地系统将只运行exe文件我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2012年WindowsServer中的 IIS,ASP.NET MVC

IIS on WindowsServer 2012, ASP.NET MVC

这是非常糟糕的运行在IIS 8.5的网站以LocalSystem,但是这是我能得到这个EXE运行的唯一途径。我需要能够有网站运行这样的:

It is very bad to run an IIS 8.5 site as LocalSystem, but that is the only way I can get this exe to run. I need to be able to have the site run this:

                var pdfProcess = new Process();
                pdfProcess.StartInfo.FileName =  SomeExeInProgramFiles;
                pdfProcess.StartInfo.Arguments = stuff;
                pdfProcess.StartInfo.WorkingDirectory = docPath; //!!!!This is really important!!!!!
                pdfProcess.Start();

2012运行窗口,我怎么可以让我的AppPoolIdentity网站运行上面的exe文件(只)程序文件?

Running windows 2012, how can I let my AppPoolIdentity site run the above exe (only) from Program Files?

我已经授予完全控制持有的exe文件到IIS APPPOOL \\我的池名称作为测试的文件夹,但它仍然会无法运行。只有当我设置的应用程序池为本地系统下运行(yicks)

I have granted full control to the folder holding the exe to IIS APPPOOL\my pool name as a test, but still it won't run. Only if I set the app pool to run under LocalSystem (yicks)

注:EXE是一种工具,需要运行完成的任务。我们具有比对从网站请求运行它没有其他选择。我们没有写或访问该exe文件。

Note: The EXE is a tool that needs to run to do tasks. We have no other option than to run it on request from the web site. We didn't write or have access to the exe.

推荐答案

尝试设置加载用户配置文件= TRUE 应用程序池 高级设置

那么我认为你应该能够使用执行过程中的 ApplictionPoolIdentity ,这样就可以避免使用本地系统帐户。

Then I think you should be able to execute the process using the ApplictionPoolIdentity, so you can avoid using the LocalSystem account.

这篇关于IIS本地系统将只运行exe文件我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆