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.