Saturday, March 7, 2015

DCOM Permission error when calling exec from PHP in IIS - oDesk

Objective:

PHP (testing: i.php) must be able to exec(‘officetopdf.exe input.doc output.pdf’). It is a small .exe that convert office documents using the installed Office in the server



Problem:

when executed it throw the error ‘Retrieving the COM class factory for component with CLSID…’ and do not execute properly.



Information:



⁃ The server has IIS and plesk panel. The user that calls PHP has been created with Plesk.

⁃ When officetopdf.exe is executed directly with cmd.exe it works well as expected.

⁃ It seem to be a problem of permissions of DCOM

⁃ On local environment on our office in another computer with windows 8 changing DCOM permissions it worked well.

⁃ Extra info: On first install of office in the server all DCOM applications do not appear in DCOM config panel. I don’t remember how we added but it wasn’t automatically added because the Office was 32 bit and the system is 64 bit. If office 32 bit is installed the error ‘Retrieving the COM class factory’ changes to something like it do not find the class.



Posted On: March 07, 2015 09:22 UTC

ID: 205238657

Category: >

Skills: Array, Array, Array, Array, Array

Country: Spain

click to apply



from Online Job Search

No comments:

Post a Comment