Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

iis6 shell.exec problem

0 views
Skip to first unread message

xkp

unread,
Nov 12, 2009, 9:57:34 AM11/12/09
to
Hi,
i need to move an asp script from an old iis5 server to a iis6 server.
As is working on the iis6 server but when i try to run the following
lines:


set shell = createobject("wscript.shell")
sCmd = "C:\mypath\cgi-shl\program.exe"
set wsx = shell.exec(sCmd)
runexit=wsx.StdOut.ReadAll

to run the external program.exe file and get the output in runexit
variable.

i have an error message like "this application has requested the
Runtime to terminate it in an unusual way".

iis6 is configured so that the whole website has the Executable
permission setted for Executalble and scripts.
of course the program.exe file works perfectly when runned in a normal
shell.
the two special users IUSR_machinename and IWAM_machinename have full
access to the directory where is program.exe.
What else i have to do in order to have it working as it was in iis5?
thanks in advance.

xkp

unread,
Nov 12, 2009, 10:10:24 AM11/12/09
to

i just discovered that if i check to true the option "Run WWW service
in IIS 5.0 isolation mode" everything works fine but of course it is
not the way i want to run iis6, otherwise i would continue to use iis
5.

0 new messages