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

Free Support Forum - aspose.com

.NET 6 - Aspose.HTML.ConvertToHTML throws System.TypeInitializationException


I need to convert a HTML content to PDF, I was using Html.ConvertToHTML for that on .NET 5 but after updating to .NET 6 the conversion throws a System.TypeInitializationException.

image.png (31.6 KB)

Here you have a sample to reproduce the issue :
HtmlToPdf.ConvertHTML.NET6.zip (1.9 KB)

And here the same code with .NET 5 that is working
HtmlToPdf.ConvertHTML.NET5.zip (10.3 KB)



We are working over resolving issues in the API under .NET 6.0. We have also logged your issue under the ticket ID HTMLNET-3494 in our issue tracking system. We will further look into its details and keep you posted with the status of its resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as HTMLNET-3494) have been fixed in this update. This message was posted using Bugs notification tool by pavel.petrushechkin