如何在IIS中调用exe文件? [英] How to call exe file in IIS ?

查看:956
本文介绍了如何在IIS中调用exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过进程创建来运行exe文件,它在源代码中工作正常,但在IIS中却无法正常工作.如何在IIS中调用exe文件?

I am running exe file through process creation, it is working fine in source code, but not in IIS. How to call exe file in IIS ?

推荐答案

这是IIS的安全问题. IIS上的Web应用程序必须配置为能够运行可执行文件.如果那不可能,请尝试这种方式:

0)让您的网站编写一个文件,指示该进程需要运行.

1)编写一个在网络服务器上运行的Windows服务,该服务器监视您的网站创建的文件.当看到文件已创建时,请让它运行可执行文件.

唯一需要注意的是,Web服务运行的可执行文件必须是没有GUI或用户交互的控制台应用程序.
Its an IIS security thing. The web applicaion on IIS has to be configured to be able to run executables. If that''s not possible, try it this way:

0) Make your web site write a file that indicates the process needs to be run.

1) Write a Windows ervice that runs on the web server that watches for the file that your web site creates. When it sees that the file is created, have it run the executable.

The only caveat to this approach is that the executable run by the web service must be a console application with no GUI or user interaction.


这篇关于如何在IIS中调用exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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