Hi, I am using Aspose.HTML library and I found out that it doesn’t support ‘#’ character in the name of the input html file when windows handles it OK. Is there any solution of this issue?
Here is sample code:
using (var document = new HTMLDocument(@“D:\work\!%@&$^#.html”))
{
Console.WriteLine(document.BaseURI);
Console.WriteLine(“OK”);
}
Exception I get:
Unhandled Exception: System.Exception: ‘file:///D:/work/!%@&$^#.html’ could not be found. —> Aspose.Html.Dom.DOMException: ‘file:///D:/work/!%@&$^#.html’ could not be found.
at .
[T](UInt16
, String
, String
, Object[])
at .
(String
, Object[]
)
at Aspose.Html.Dom.Document. .
.
()
at .
()
— End of inner exception stack trace —
at .
(Boolean
)
at .Dispose()
at Aspose.Html.Dom.Document.(☼
)
at Aspose.Html.Dom.Document…ctor(IDocumentInit documentInit)
at Aspose.Html.HTMLDocument…ctor(RequestMessage , Configuration
, Byte
)
at Aspose.Html.HTMLDocument…ctor(String address)
at ConsoleApplication1.Program.Main(String[] args) in D:\Labs\PathTest\ConsoleApplication1\Program.cs:line 19
This file definitely exists. I am using Aspose.HTML 20.11.0. Updating to the latest one doesn’t solve this issue.