Running executables on iis7
I'm trying开发者_如何学运维 to run an executable from inside iis7. The executable is a console application i created and i'm trying to run it with Process.Start(). The process runs on the background (i see it on the process list) but without the console window.
How can i make it run with the console window ?
I already tried the "allow desktop interaction" in the iis admin service options. Didn't work.
If what you really want to do is to trace the behavor of your web application, then attempting to write to a console window is NOT the right approach.
The answer is further elaborated here: Outputting to the Console in C# on IIS
EDIT:
Maybe you should consider porting your console application logic to a ServicedComponent
and register it with COM+. That will allow you some degrees of freedom with respect to the context in which the component logic is being executed.
精彩评论