none
User Problem IIS, PHP, Access Module, Word.Application and RUNAS cmd using batch filed. RRS feed

  • Question

  • I have a program running in ACCESS trigger by a macro that calls Word.Application. The program works great when trigger directly, through the cmd line and with the php intrepreter. Each instance I am able to use a user with appropriate access. I need to trigger the application through the web browser.

    I can open the database and run the macro. No problem. The problem is the Word.Application.Documents.Open returns an error (91). The obsurb something is wrong error. I have tracked in down by capturing the user and basically all the other method use the appropriate user but php from the browser executing a batch with which use the runas command does not work. The user is always the local system user. (NCS-003$).

    I have follow all the tips I can find. I am using a custom user in the Application pool inside of IIS. If I do a whoami command it is using the right user. But if I run a batch file to capture the user information the user changes to the system user. 

    Any ideas???


    Saturday, February 29, 2020 6:18 PM

All replies

  • PHP and VB.NET are two different language platforms. One runs on the client side, PHP, and the other one runs on the server-side.

    I would recommend posting to the IIS forums there are software developers that frequent the forums.

    https://forums.iis.net/

    Saturday, February 29, 2020 9:29 PM