Re: PHP cannot execute programs
From: Kristofer Gafvert (kgafvert_at_NEWSilopia.com)
Date: 02/19/05
- Next message: Kristofer Gafvert: "Re: iis6 + web edition + site setup via script??"
- Previous message: Kristofer Gafvert: "Re: IIS6.0 Truncates Client-Script Files"
- In reply to: Sue: "PHP cannot execute programs"
- Next in thread: Sue: "Re: PHP cannot execute programs"
- Reply: Sue: "Re: PHP cannot execute programs"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 19 Feb 2005 04:57:09 -0800
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: Kristofer Gafvert: "Re: iis6 + web edition + site setup via script??"
- Previous message: Kristofer Gafvert: "Re: IIS6.0 Truncates Client-Script Files"
- In reply to: Sue: "PHP cannot execute programs"
- Next in thread: Sue: "Re: PHP cannot execute programs"
- Reply: Sue: "Re: PHP cannot execute programs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|