Exception "Culture is not supported. (Parameter 'culture')\r\n1033 (0x0409) is an invalid culture identifier." when saving DOC file to PDF

Hi,
I got an issue when saving a doc file to pdf format, the exception is “Culture is not supported. (Parameter ‘culture’)\r\n1033 (0x0409) is an invalid culture identifier”.
My sample code:

Document document = new Document(inFile);
document.Save(outFile, SaveFormat.Pdf);

Here is my file:
sample.zip (57.6 KB)
I tried with latest version of Aspose Word 23.10 but issue still there.
Thank you.

@dunghnguyen Unfortunately, I cannot reproduce the problem on my side. Could you please create a simple console application that will allow us to reproduce the problem? Also, please describe the environment where the problem occurs.

Hi @alexey.noskov ,
Here is my simple console application that I’ve created
ConsoleApp1.zip (82.0 KB)
I’m using .NET core 5.0.
Thank you.

@dunghnguyen The problem occurs because InvariantGlobalization is enabled. You can see this option in .csproj:

<InvariantGlobalization>true</InvariantGlobalization>

If disable this option the document is converted fine:

<InvariantGlobalization>false</InvariantGlobalization>