Re: IIS 5.1 execution questions - application failed to initialize
From: Warren Sirota (wsirota_at_wsdesigns.com)
Date: 01/21/05
- Next message: Will Platnick: "Re: Website will not start"
- Previous message: rbrewer_at_venus-painting.com: "Re: Website will not start"
- In reply to: Ken Schaefer: "Re: IIS 5.1 execution questions - application failed to initialize"
- Next in thread: David Wang [Msft]: "Re: IIS 5.1 execution questions - application failed to initialize"
- Reply: David Wang [Msft]: "Re: IIS 5.1 execution questions - application failed to initialize"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 21 Jan 2005 07:46:48 -0800
Thanks for the info Ken. Filemon seems to show an Access Denied issue
with dllhost.exe:3460 when I try to open the asp page containing the
call to wshShell.run. I've tried making the IUSR account part of
Administrators, but that doesn't seem to fix the problem. Any ideas?
Even before we get to the permissions issue, is the question of where
should the file to be executed live and how should it be addressed. If
I just put an unqualified filename in the wshShell.run call (e.g.,
wshShell.run "createOutputFile.exe",,true) then I would expect (whether
correctly or incorrectly) that wshShell would attempt to run a copy of
the file in the same directory on the web site as the page that called
it. If I put in a qualified file name (e.g., wshShell.run
"C:\Windows\notepad.exe",,true), that doesn't seem to work either.
Should either of these work?
Thanks for any help you can offer.
Ken Schaefer wrote:
> Permissions problems can be troubleshooted using Filemon and Regmon
> from www.sysinternals.com
>
> Remember that unless you are using authentication, IIS will run ASP
> pages in the context of the configured "anonymous user account",
> which is IUSR_<machinename> by default.
>
> Cheers
> Ken
>
> "Warren Sirota" <wsirota@wsdesigns.com> wrote in message
> news:%23x5Ktpz$EHA.1264@TK2MSFTNGP12.phx.gbl...
> > Hi,
> >
> > I'm more of a programmer than an administrator, so please excuse me
> > if these questions are dumb. I've spent a couple of hours hunting
> > around for answers, to no avail.
> >
> > I'm running IIS 5.1 on my XP Pro development system. I'm trying to
> > shell out to an exe (in an ASP page) using code like:
> >
> > set wshShell = createobject("wscript.shell")
> > wshShell.run "C:\SomeFolder\createOutputFile.exe",,true
> >
> > where createOutputFile.exe is a VB (or perhaps some other kind) of
> > executable that takes a few seconds to create a report.
> >
> > I can run that code from VB, but I can't seem to get any variants
> > of it to run from asp - I always get the "application failed to
> > initialize" message. This is true whether I leave the full file
> > path in, or copy the executable to the web site and use either a
> > web address or an unqualified file path (i.e., either
> >
> > wshShell.run "//localhost/myWeb/createOutputFile.exe",,true
> >
> > or
> >
> > wshShell.run "createOutputFile.exe",,true
> >
> > I suspect a permissions problem, but I'm not sure how to deal with
> > it. Any suggestions? Thanks.
> >
> > Warren Sirota
- Next message: Will Platnick: "Re: Website will not start"
- Previous message: rbrewer_at_venus-painting.com: "Re: Website will not start"
- In reply to: Ken Schaefer: "Re: IIS 5.1 execution questions - application failed to initialize"
- Next in thread: David Wang [Msft]: "Re: IIS 5.1 execution questions - application failed to initialize"
- Reply: David Wang [Msft]: "Re: IIS 5.1 execution questions - application failed to initialize"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|