How do I get past server execution error?

-1

I am running an application in ui5. I have an ajax call that calls a php script that runs a powershell script using exec(). The powershell script combines powerpoints into one powerpoint. The powershell script is throwing the error. The server is IIS.

I am getting the error

 [0] => New-Object : Retrieving the COM class factory for component with CLSID
 [1] => {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error:
 [2] => 80080005 Server execution failed (Exception from HRESULT: 0x80080005
 [3] => (CO_E_SERVER_EXEC_FAILURE)).

The lines of powershell code throwing the error is

#Opening the PowerPoint application once
Add-Type -AssemblyName Microsoft.Office.Interop.PowerPoint
$Powerpoint = New-Object -ComObject Powerpoint.Application

I have tried these links and none of them worked.

https://support.microsoft.com/en-us/help/870655/you-may-receive-an-error-code-80080005-server-execution-failed-error-m Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)) https://forums.asp.net/t/931005.aspx?Com+Component+access+denied+to+resource+error+in+ASP+net+

The expected result is the script will run with out errors.

powershell
iis
server
powerpoint
asked on Stack Overflow Apr 2, 2020 by kingofjong • edited Apr 2, 2020 by kingofjong

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0