NetworkError Exception when Initializing HTMLDocument with a File Path

Hello,

I am currently using Aspose.HTML for .NET (version 24.8) and encountering an issue when trying to initialize an HTMLDocument using the following file path:

C:\abc#abc\fs5.html

Here is the relevant code snippet:

// Import file configuration
Aspose.Html.Configuration AsposeHtmlConfig = new Aspose.Html.Configuration();
AsposeHtmlConfig.Security |= Sandbox.Scripts | Sandbox.Images | Sandbox.Origin;
var network = AsposeHtmlConfig.GetService<INetworkService>();
network.MessageHandlers.Insert(0, new NetworkDisabledMessageHandler());

Document = new HTMLDocument(@"C:\abc#abc\fs5.html", AsposeHtmlConfig);

However, I am encountering a NetworkError exception with the following message:

file:///C:/abc#abc\fs5.html could not be found.

It seems the issue is related to the # symbol in the file path. Could you please provide guidance on how to resolve this issue?

Thanks for your help.

@ork

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): HTMLNET-5775

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.