Re: PHP cannot execute programs

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Kristofer Gafvert (kgafvert_at_NEWSilopia.com)
Date: 02/19/05


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.


Relevant Pages

  • PHP cannot execute programs
    ... The application is written in PHP and I am ... install Visual Studio .NET. ... may have changed my IIS settings, ... security, but i would like to have any information including all the places ...
    (microsoft.public.inetserver.iis)
  • Basic Security ?
    ... I use the IIS included in Windows XP Pro, I only use it on my home computer ... for development purposes (ASP, PHP, etc.) I looked up security techniques ...
    (microsoft.public.inetserver.iis.security)
  • TSLSA-2005-0059 - multi
    ... Affected versions: Trustix Secure Linux 2.2 ... PHP is an HTML-embedded scripting language. ... use of Rest with FTP servers and Range with HTTP servers to retrieve files ... - New Upstream and Multiple Vendor Security Fixes ...
    (Bugtraq)
  • Re: Mac Server Hacked In Less Than 6 Hours
    ... Windows has RAS, and for it is built in since NT 3.1 ... | A typical IIS box and this Mac are not the same thing so the comparison ... IIS has been subject to quite a few bugs and so have ... Security isn't a proprietary attribute. ...
    (sci.crypt)
  • Re: DCOM calls fails - access denied
    ... That's exactly how I understood the ASP.NET security. ... But why does one configuration work but not the other? ... should get the token from IIS. ... If you set there a domain account, ...
    (microsoft.public.dotnet.framework.aspnet.security)