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.
User contributions licensed under CC BY-SA 3.0