Re: PHP cannot execute programs
From: Sue (Sue_at_discussions.microsoft.com)
Date: 02/19/05
- Next message: KeyWest JetSki: "Web Site help"
- Previous message: Kristofer Gafvert: "Re: iis6 + web edition + site setup via script??"
- In reply to: Kristofer Gafvert: "Re: PHP cannot execute programs"
- Next in thread: Kristofer Gafvert: "Re: PHP cannot execute programs"
- Reply: Kristofer Gafvert: "Re: PHP cannot execute programs"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 19 Feb 2005 06:43:03 -0800
Thank you so much for your response.
Nothing has changed in any of the code. I agree that it must have something
to do with permissions. Winproj.exe runs fine from the command line.
CalculateProject.exe runs fine from the command line. rick.bat runs fine
from the command line. But for some reason, the PHP code that could call it
before (and has not changed) cannot call it now. I have verified that the
username that is used in the code has execute permission for all three
applications in IIS and at the file level. Also the directories they are in.
where do i correct "the user to access the assembly is now denied access"?
"Kristofer Gafvert" wrote:
> Hi,
>
> There seems to be some change in the permissions, and that the user to
> access the assembly is now denied access. You would most likely get the
> same error message if you run this as a stand-alone application with the
> same user as is used by your webapplication.
>
> Verify that you are still using the same user account for your
> webapplication, as you used before this started to happen. If you do, it
> does not seem to be a problem with IIS, but more of a programming problem
> (related to security). I would recommend you to post to a programming
> newsgroup, or possibly a MSProject newsgroup for faster and better help.
>
> Good Luck!
>
> --
> Regards,
> Kristofer Gafvert
> www.gafvert.info - My Articles and help
> www.ilopia.com
>
>
> Sue wrote:
>
> >
> > If I am in the wrong place, please redirect me.
> >
> > I have Windows Server 2003. The application is written in PHP and I am
> > running IIS.
> > At one point in the application, PHP calls another program and passes a
> > parameter. Until today, this has been working fine (very slow, but
> working).
> > The command is:
> > PHP: $callcmd="rick.bat" plus the project name
> > rick.bat calls CalculateProject.exe
> > CalculateProject.exe is a VB program that launches MS Project
> (WINPROJ.exe).
> > (yeah, I know it is ugly, but it will work until i get it re-written)
> >
> > Today PHP is working just fine EXCEPT where it calls the other program.
> It
> > does not run the executable and I get this message back:
> >
> > Unhandled Exception: System.IO.FileLoadException: Access is denied:
> > 'Interop.MSProject, Version=4.3.0.0, Culture=neutral,
> PublicKeyToken=null'.
> > File name: 'Interop.MSProject, Version=4.3.0.0, Culture=neutral,
> > PublicKeyToken=null' ---> System.UnauthorizedAccessException: Access is
> > denied. at Project1.Module1.Main()
> >
> > The only thing I can think of that has changed is that I have attempted
> to
> > install Visual Studio .NET. I think that the prerequisites that I
> installed
> > may have changed my IIS settings, possibly upgraded IIS.
> >
> > I have gone thru what I can think of to make sure that the user has
> > security, but i would like to have any information including all the
> places
> > that i need to check for security, just in case there is something that I
> > missed.
>
- Next message: KeyWest JetSki: "Web Site help"
- Previous message: Kristofer Gafvert: "Re: iis6 + web edition + site setup via script??"
- In reply to: Kristofer Gafvert: "Re: PHP cannot execute programs"
- Next in thread: Kristofer Gafvert: "Re: PHP cannot execute programs"
- Reply: Kristofer Gafvert: "Re: PHP cannot execute programs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|