I've encountered a problem trying to run an external exe from an aspx page.
My code works fine when running under visual studio and also when running under iis7 on windows server 2008 SP1.
It does not work on iis6 on windows 2003 sp2:
1. The executable is loaded and uses 560k or so of memory
2. The executable does not use any cpu
3. The executable does not appear to enter Main()
4. The invoking code hangs at WaitForExit()
I've tried using different executables including a dummy that simply returned and that did not make any difference.
I'm pretty sure that the credentials being used for the executable are correct because if I fudge the password, the process reports a login failure.
I'm pretty sure that output blocking to the standard out and standard error streams is not the issue as a) it works on iis7 and b) when I first suspected this as the cause, I re-wrote the aspx to launch threads to read the streams.
I've tried invoking my exe directly and via cmd.exe and that makes no difference.
Anyway, if anyone has any ideas on this, it would be greatly appreciated. I've included a snippet of my code below.
Thanks in advance...
// Create a new process to invoke the console app
View Complete Post