We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The Type Initializer for 'Gdip' Threw an Exception

NET6, Aspose.Slides version 22.3

.NETCoreApp,Version=v6.0 on linux-x64

System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
 ---> System.PlatformNotSupportedException: System.Drawing.Common is not supported on non-Windows platforms. See https://aka.ms/systemdrawingnonwindows for more information.
   at System.Drawing.LibraryResolver.EnsureRegistered()
   at System.Drawing.SafeNativeMethods.Gdip.PlatformInitialize()
   at System.Drawing.SafeNativeMethods.Gdip..cctor()

@zhouwei,
Thank you for contacting support.

Unfortunately, Aspose.Slides does not support .NET 6 yet. I’ve linked this forum thread to an appropriate task with ID SLIDESNET-42778 in our issue tracking system. You will be notified when the issue is resolved.

.NET 6 support is planned for Aspose.Slides 22.6. This release will be published in the second half of June.