Free Support Forum - aspose.com

Aspose.Html.HTMLDocument hangs when loading a URL

Step to reproduce the issue:
Create a new console app .Net core 3.1
Add the Aspose.HTML package version 20.9.0

add the following code to the Main method:

static void Main(string[] args)
        {
            var document = new Aspose.Html.HTMLDocument(@"https://ibvsolutions.com/en/home");
            Aspose.Html.Converters.Converter.ConvertHTML(document, new ImageSaveOptions(ImageFormat.Png), "output.png");
        }

the application does not exit from the statement

var document = new Aspose.Html.HTMLDocument(@"https://ibvsolutions.com/en/home");

and in the output window you will notice
image.png (124.2 KB)
image.png (5.6 KB)

in there any way to load an html document from a url and save as image that works?

@gsanto75

We were able to notice a similar issue in our environment while using Aspose.HTML for .NET 20.9. We have logged it as HTMLNET-2822 in our issue tracking system for the sake of further investigation and correction. We will look into its detail and keep you informed with the status of its rectification. Please be patient and spare us some time.

We apologize for the inconvenience.

PS: We are afraid that we cannot suggest any other workaround at the moment and as soon as the ticket is investigated, we will share updates with you.