Free Support Forum - aspose.com

Aspose.Html.HTMLDocument not working for some URLs

Hello:
I am testing Aspose.Html package for the purpose of purchasing the paid version.
i have done the following:

  1. Create a .NET core application with Visual Studio 2019 version 16.4.2; the project is targeting .NET core 3.1
  2. I install Aspose Nuget package:
    Install-Package Aspose.Html -Version 19.12.0
  3. I have the following C# code, which works:using Aspose;
    using System;

namespace BetfairSportsBook1
{
class Program
{
static void Main()
{
String InputHtml = “https://www.google.com/”;
// Load HTML file using Url instance
Aspose.Html.HTMLDocument document = new Aspose.Html.HTMLDocument(new Aspose.Html.Url(InputHtml));
// Print inner HTML of file to console
Console.WriteLine(document.Body.InnerHTML);
}
}
}

But I tested with other 2 URLs, but none of them is working:
String InputHtml = “https://www.betfair.com/”;
String InputHtml = “https://www.betfair.es/”;
All the URLs working well in any browser from my laptop PC running Windows 10 Version 1909.
Any suggestions?

@zydjohn2020,

We are looking into this and will get back to you with feedback soon.