Search code examples
imageasp.net-corepowerpoint

Using COM References after deplyoing on IIS Server


I developed a simple powerpoint conversion (into images) to display them in a caroussel. So I used the

Interop.Microsoft.Office.Interop.PowerPoint

On my devlopment environment it works fine but when I publish it with Azure on my IIS Server, it seems that id does not work.

Exception: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80040154

Why does it works before the deployment on IIS ? I tried to install powerpoint on the server without succes, could you give me hints ?


Solution

  • Well it was too much of a hassle to use Microsoft COM : HRESULT_FAIL + Not all clients have Office + Office Server etc

    so I just use this : https://help.syncfusion.com/file-formats/presentation/presentation-to-image

    Free Trial can be used multiples times or you can get a licence key for free.