Re: Problem executing program in IIS

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: ted_thompson61 (tedthompson61_at_discussions.microsoft.com)
Date: 03/01/05


Date: Mon, 28 Feb 2005 17:07:03 -0800

I solved the problem by turning off Annonymous Logins and granting full
access control to a few accounts that lacked them.

That made it work like Win 2000 except in Win XP a cmd window pops up for
each process.

Thanks for the help!

"Ken Schaefer" wrote:

> Just a hunch - have you checked the NTFS permissions on cmd.exe?
>
> Otherwise use Filemon from www.sysinternals.com to see what sort of Access
> Denied errors you are getting...
>
> Cheers
> Ken
>
>
> "ted_thompson61" <tedthompson61@discussions.microsoft.com> wrote in message
> news:04C13CDE-0297-418B-8FB3-983671EE9693@microsoft.com...
> :
> :
> : "Ken Schaefer" wrote:
> :
> : > Hi,
> : >
> : > Can you please just answer the question? YES
> :
> : Are you trying to get the server
> : > (IIS) to run program.exe? YES
> :
> : Or is IE attempting to run program.exe on the
> : > client side? NO
> :
> :
> :
> : I have scripts and executables set for the directories in question. The
> : program runs because it creates an output file. I just can't execute
> system
> : calls to copy a file or execute another program.
> :
> :
> :
> : >
> : > If the former, then you would need to set "scripts and executables" as
> the
> : > execute permission (using IIS Manager) for the folder that program.exe
> sits
> : > inside. This is so that IIS will attempt to run program.exe on the
> server.
> : > Then you would need to ensure that whatever user context is running
> : > program.exe has sufficient privileges to access resources that you want
> to
> : > access. You can use filemon and regmon from www.sysinternals.com to
> verify
> : > this.
> : >
> : > If the latter, then this is not an IIS question. It's an IE question.
> You
> : > are trying to invoke an executable on the client from the browser. You
> might
> : > want to ask this question in an IE group.
> : >
> : > Cheers
> : > Ken
> : >
> : >
> : > "ted_thompson61" <tedthompson61@discussions.microsoft.com> wrote in
> message
> : > news:01D0DE18-C5CF-41E0-B2D7-3BB8163D91AF@microsoft.com...
> : > : It is on the client side (I guess). Although in this instance the
> client
> : > and
> : > : server are the same machine.
> : > :
> : > : The program is executed from a submit button in a form with a link:
> : > :
> : > : <a href="program.exe">
> : > :
> : > : The progam.exe edits a file then issues shell commands to copy a file
> and
> : > : then execute a program. The program runs and has write permission in
> the
> : > : directory because we can write a temp file with the values from the
> forms.
> : > :
> : > : This all works under Win 2000.
> : > :
> : > :
> : > :
> : > :
> : > : "Ken Schaefer" wrote:
> : > :
> : > : > Are you trying to accomplish this command shell access from the
> client
> : > (IE)
> : > : > or from some server-side code (e.g. ASP page run by IIS)?
> : > : >
> : > : > Cheers
> : > : > Ken
> : > : >
> : > : > "ted_thompson61" <tedthompson61@discussions.microsoft.com> wrote in
> : > message
> : > : > news:53F2EC4C-E8A1-4269-B3CE-7F7D99959004@microsoft.com...
> : > : > : THIS WORKED UNDER WINDOWS 2000
> : > : > :
> : > : > : In IIS, I have an application that is executed from an HTML page
> using
> : > a
> : > : > : form.
> : > : > :
> : > : > : It's purpose is to create an input file by editing a template file
> : > based
> : > : > on
> : > : > : information in the form, then kick off another DOS based program
> that
> : > uses
> : > : > : the input file and produces some output files.
> : > : > :
> : > : > : This has all worked well using IIS and Windows 2000 on several
> : > different
> : > : > : computers.
> : > : > :
> : > : > : I am currently trying to get this to work on a brand new DELL M60
> : > : > : workstation laptop that came preloaded with XP Pro SP2 (IIS 5.1)
> : > : > :
> : > : > : The interface program that communicates with the HTML IS RUNNING
> and
> : > has
> : > : > : proper permissions in the directory because it writes a debug file
> in
> : > the
> : > : > : directory where the other program resides. This debug file has the
> : > correct
> : > : > : information I change in the HTML forms each time.
> : > : > :
> : > : > : The interface program uses the CMD shell to copy a file and to
> execute
> : > the
> : > : > : other programs.
> : > : > :
> : > : > : Under XP, the program is not creating the new version of the input
> : > file or
> : > : > : running the other program.
> : > : > :
> : > : > : I am thinking this has something to do with the improved security
> of
> : > SP2.
> : > : > I
> : > : > : have disabled the firewall (This computer will NEVER be on the
> : > internet),
> : > : > : lowered the security settings for IE explorer and checked
> permissions
> : > and
> : > : > : ownership of the directory and still no luck.
> : > : > :
> : > : > : The directory is web-shared with read-write and scripts and
> : > executables
> : > : > : permissions. I made sure all the common settings for IIS in XP
> were
> : > the
> : > : > same
> : > : > : as those for 2000.
> : > : > :
> : > : > : Server logs do not contain any errors.
> : > : > :
> : > : > : Can anyone point me in the right direction on this?
> : > : > :
> : > : >
> : > : >
> : > : >
> : >
> : >
> : >
>
>
>


Quantcast