Exception while loading the version v24.10 Aspose.PDF

While loading the Aspose.PDF the version 24.10 throwing an exception saying that System.TypeInitializationException: ‘The type initializer for ‘’ threw an exception.’

Please find the attached screen shot for more details on exception

AsposePDF2.png (144.4 KB)

AsposePDF1.png (62.6 KB)

Can you please help us to resolve this issue

@KumarPunith

Please specify at what stage the error occurs. When connecting the dll/nuget package or when running the code?

I explicitly downloaded this dll (Aspose.PDF v24.10.0) from Aspose site and referenced to the project. while running the code its throwing an exception like that.
The project .NET framework is on .NET 4.8 so I taken the Aspose.PDF latest dll from the Aspose.PDF.24.10.net40 this folder

Note: The same working fine on Aspose.PDF version v23.12

@KumarPunith

Did I understand correctly that the project you are connecting the library to is .Net Framework 4.8?
Support for versions lower than .Net Framework 4.8.1 (including 4.8) has been discontinued in the latest versions of the library. To work with the library in this case, you can download the corresponding version from the site Download .NET Component DLL to Process PDF | Aspose.PDF API

For old Net Framework.png (46.2 KB)

(however, please note that this is a temporary feature).