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

Free Support Forum - aspose.com

Error when using ConvertHTML in web application

I’m converting an html file to pdf, using the code below. This code works fine in a console application. When I run the same code in a .NET Framework 4.8 web application, the app pool recycles and an Event Log message is written: Application popup: w3wp.exe - System Error : A new guard page for the stack cannot be created.

        using (HTMLDocument htmlDocument = new HTMLDocument(htmlFileName))
        {
            Aspose.Html.Saving.PdfSaveOptions pdfOptions = new Aspose.Html.Saving.PdfSaveOptions();
            Aspose.Html.Converters.Converter.ConvertHTML(htmlDocument, pdfOptions, pdfFileName);
        }

@dbartle

Could you please share a sample web application with us which is able to reproduce the issue? We will test the scenario in our environment and address it accordingly.

@dbartle

We were able to notice StackOverFlow exception while testing the scenario in our environment. Therefore, have logged an issue as HTMLNET-3028 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

Curious if there is any update on this issue?

@dbartle

We are afraid that the earlier logged ticket is not yet resolved. We will surely fix the logged issue on a first come first serve basis and let you know as soon as certain progress is made towards its resolution. Please be patient and give us some time.

We are sorry for the inconvenience.

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