Re: IIS 5.1 execution questions - application failed to initialize

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Warren Sirota (wsirota_at_wsdesigns.com)
Date: 01/21/05


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



Relevant Pages

  • Odd asp page behaviour
    ... It doesn't seem to matter what is in the asp page, ... it was a permissions problem but I cannot phathom out where it wants ... The default web site and all the folders all have ...
    (microsoft.public.inetserver.iis.security)
  • Re: SQL beginner help
    ... statements to the server)? ... request from the "jblow123" web site login. ... with the Asp code it will decide what how to handle what the user is ... But I still need some client side execution;/ I think I got a good ...
    (microsoft.public.sqlserver)
  • Re: My first impressions of ASP.NET
    ... is responsible for the delivery of vital aircraft parts to active duty US ... ASP trick of storing the variable in an hidden text box. ... > sure what Afghanistan has to do with this. ... >> with DoD regulations to replace the existing Web Site which was working ...
    (microsoft.public.dotnet.general)
  • Re: Accessing another computers administrative shares
    ... the network in ASP as an object. ... > filepath the remote machine must be able to authenticate as either a local ... > administrative account or a domain administrative account (if the target ... >> Only Administrators can connect to administrative shares. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Accessing another computers administrative shares
    ... administrative shares), is valuable or not. ... And as far as I know, some API can be used as an object in ASP. ... This ASP page is for the Administrators who want to ... >> the all the coming and going files on the users' computers. ...
    (microsoft.public.inetserver.asp.general)