Aspose.Words 24.7 cannot be used by a .NET 8 Core API Website in globalization-invariant mode, because somewhere in the Aspose source code they have hard-coded the culture en-nz and try switching to it. Here the proof:
System.TypeInitializationException: The type initializer for 'Gg' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Vu' threw an exception.
---> **System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode.** See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name')
en-nz is an invalid culture identifier.
at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
at Vu..cctor()
--- End of inner exception stack trace ---
at Vu.c(String d)
at Gg..cctor()
--- End of inner exception stack trace ---
at Gg.d(Single d, Int32 v)
at Uz.v(Single d, Int32 v)
at Uz.d(Single d)
at Uz.iBiFd(Single d)
at Uz.d(pe d)
at TB.d(pe d)
at Nn..ctor(Fz d, Single v, Single c)
at Lz.d(Single d, Single v)
at Lz.d(SizeF d)
at Un.eqiFd(Vq d)
at Vq.hJiFd(eq d)
at Un.d(Vq d)
at tUw.AUziFd(Vq d)
at AUz.d(Vq d, Boolean v, Boolean c)
at AUz.v(lCK d, yd v)
at AUz.NUciFd(lCK d)
at YUQ.YUQiFd(lCK d)
at Aspose.Words.Document.d(lCK d)
at Aspose.Words.Document.d(Stream d, String v, SaveOptions c)
at Aspose.Words.Document.Save(Stream stream, SaveOptions saveOptions)
at Odis.Fusion.Interop.PdfConversion.ConvertToPdfA(MemoryStream file, Stream outStream) in C:\Code\Fusion\Applications\Interop\Interop\PdfConversion.cs:line 27
at Program.<>c__DisplayClass0_0.<<Main>$>b__6(NewFileOut request) in C:\Code\Fusion\Applications\Interop\WebService\Program.cs:line 66
at lambda_method8(Closure, Object, HttpContext, Object)
at Microsoft.AspNetCore.Http.RequestDelegateFactory.<>c__DisplayClass102_2.<<HandleRequestBodyAndCompileRequestDelegateForJson>b__2>d.MoveNext()