The type initializer for 'Aspose.Pdf.XmpField' threw an exception

Aspose.PDF 24.10.0, installed using Nuget.
.NET framework 4.8.1.
Application type is Class Library, I feel like this is important since I do not get the error when running same code/same PDF documents under Windows Form application.

What suggestions do you have?

Code sniplet is

Try

            Dim licensePdf As New Aspose.Pdf.License
            licensePdf.SetLicense("C:\AsposeTestiing\Aspose.PDF.NET.lic")

            Dim Doc1 As New Aspose.Pdf.Document("C:\AsposeTestiing\3n5dmzls.PDF")
            Dim Doc2 As New Aspose.Pdf.Document("C:\AsposeTestiing\ctxhwg4u.PDF")

            Doc1.Pages.Add(Doc2.Pages)
            Doc1.Save("C:\AsposeTestiing\OutFile.PDF")

        Catch ex As Exception
        End Try

@Lysa
We are looking into it and will be sharing our feedback with you shortly.

@Lysa

We are not able to reproduce this error in our environment. If possible, can you please share your sample class library project for our reference? Please share it in .zip format so that we can use it to reproduce the error and address it accordingly.

VTATesterInline.zip (1.9 MB)

Project uploaded.
To reduce file size, I removed the following
/packages/Aspose.PDF.24.10.0
/bin/Aspose.PDF.dll

Class library is attached. I’m not sure if you’ll be able to use it since it has EBPI.dll dependencies.

@Lysa

We are unable to use or debug it. If possible, can you please share minimal code application that we could use to replicate the problem in our environment? Can we try to replicate in a console application?