Free Support Forum -

Failed to parse base URL Aspose.Html for .net


I have an issue when creating an instance of HTMLDocument in .net, the error “Failed to parse base URL” appears, it only happens when working with a file located in a network directory eg. //dev-machine/folder/file but it is strange because I pass to the constructor the html as string, not the path.

using (HTMLDocument document = new HTMLDocument(html, “.”))

The Aspose version I’m using is 20.1.0

1 Like


Can you please try to test the scenario using 21.5 version of the API and if you still face any issue, please share the complete sample HTML for our reference so that we can test the scenario in our environment and address it accordingly.