PPTX to PDF/PNG/SVG in C#: "Parameter Is Not Valid" Exception

I’m evaluating different .NET libraries to convert PPTX to PDF, PNG or SVG. We want to run this as internal service on a docker image on a azure web app later on. Using your library everything works fine when running on docker locally but when I deploy it to azure I get a “Parameter is not valid” Exception.
With the following stack trace:
at Aspose.Slides. .(Presentation , Stream , InterruptionToken )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation.(Stream )
What could the problem be? Any ideas?

@riexinsa,
Thank you for contacting support.

To investigate the case on our side, please share/specify the following:

  • the version of Aspose.Slides you used
  • docker image description
  • presentation file
  • code example that reproduces the error

Apose.Slides Version 21.12
Docker Image: mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019 (nothing special installed)
Presentation: Test-File
Code - st is a MemoryStream

using(var pptx = new Presentation(st)) // ← Exception happens here
{

}

As already mentioned running it on docker locally everything is fine doing the same on azure web app as docker image results in the behaviour described above.

@riexinsa,
Thank you for the additional information. Could you share a comprehensive code example (with loading the presentation to the stream) and the entire stack trace, please?