Hi,
I’m encountering a runtime exception when attempting to convert documents using GroupDocs.Conversion.CrossPlatform on an Azure Linux App Service (.NET 8).
Despite using the CrossPlatform package, conversions fail with the following error:
System.Drawing.Common is not supported on this platform.
GroupDocs.Conversion.Exceptions.GroupDocsConversionException: System.Drawing.Common is not supported on this platform.
---> System.PlatformNotSupportedException: System.Drawing.Common is not supported on this platform.
at System.Drawing.Drawing2D.Matrix..ctor(...)
...
at Aspose.Html.HTMLDocument.RenderTo(IDevice device)
...
at GroupDocs.Conversion.Converter.Convert(...)
From the stack trace, it appears the conversion pipeline (via Aspose.Html) is invoking System.Drawing.Common. On Linux App Service, this results in PlatformNotSupportedException, and Azure App Service does not allow installing system dependencies like libgdiplus.
Environment
- Azure App Service (Linux)
- .NET 8
- GroupDocs.Conversion.CrossPlatform
- No ability to install OS-level packages (standard App Service limitations)
Questions
- Is
System.Drawing.Commonexpected to be used internally by the CrossPlatform library for certain conversions? - Are there supported configurations or rendering backends that avoid
System.Drawingentirely on Linux? - Is there official guidance for running GroupDocs.Conversion.CrossPlatform on Azure Linux App Service without Docker?
- If not, which conversion scenarios are guaranteed to work headlessly (without System.Drawing)?
Any clarification or recommended deployment approach would be greatly appreciated.
Thank you.