Hi,
Program.zip (969 Bytes)
if you compile attached project to an “exe” and copy the “exe” to a networkdrive und run it from there you get an error saying “Failed to parse base url.”
Th error is thrown here:
var loadOptions = new Aspose.Pdf.HtmlLoadOptions(htmlFilePath);
If you run the same project on the local machine from a local drive everything work as expected.
Best regards,
Daniel
@schlumpfger
Thank you for contacting support.
Would you please share the value of htmlFilePath
property and details of the network drive. Please ensure using Aspose.PDF for .NET 19.11 before sharing your kind feedback.
You find any information in the attached zip file. Please have a look.
Everything is up to date at our end.
@schlumpfger
Attached ZIP file only contains the code snippet in a CS file. Kindly share the value of htmlFilePath
property at runtime.
!cid_part1_CDF2B676_962FE109@lcs-schlieben.png (19.3 KB)
It is: C:\Users\vankoten\AppData\Local\Temp\tmpBC5C.tmp.html
Create HtmlLoadOptions for: C:\Users\vankoten\AppData\Local\Temp\tmpBC5C.tmp.html
Try to open: C:\Users\vankoten\AppData\Local\Temp\tmpBC5C.tmp.html
FEHLER
Failed to parse base URL.
bei #=z99ZjdockOBwZCe$IJhZWX5o=.#=zHk8HtJOW0BuY[T](String #=zfHYzm7g=, Object[] #=zVEbJwNQ=)
bei #=z99ZjdockOBwZCe$IJhZWX5o=.#=zHk8HtJOW0BuY(String #=zfHYzm7g=, Object[] #=zVEbJwNQ=)
bei #=zCoz2hEYs2me23rPmQkCTSyg=…ctor(String #=zrNsy2mc=, String #=zx4az7woZSJsv)
bei #=z14zlVD866i37yrxMOmifu6ELuGiq.#=z2dUBVAI=(Stream #=z2aTijO4=, String #=z89flTy0=)
bei #=z1sCz$zjf4VOxT2hrB$5IC0E=…ctor(Stream #=z2aTijO4=, String #=z89flTy0=, #=zOBrY4u$jR$Dkie$uVOw7soE= #=zPP1O8OI=)
bei #=zeltPLuwNjbjITzT7V5rk6M6mFtVw.#=zO4hYpsY=(Stream #=zSDgIHAe_j_Lq, Document #=z5rLO1u5z1P2y, HtmlLoadOptions #=zOfM0HxF8CLIN, String #=z93vlmtkl0xOl)
bei #=zeltPLuwNjbjITzT7V5rk6M6mFtVw.#=zO4hYpsY=(Stream #=zSDgIHAe_j_Lq, Document #=z5rLO1u5z1P2y, HtmlLoadOptions #=zOfM0HxF8CLIN)
bei Aspose.Pdf.Document.#=zk4MIQ_o=(Stream #=zTPkKuT0=, LoadOptions #=z$0FxaJo=)
bei Aspose.Pdf.Document…ctor(String filename, LoadOptions options)
bei PdfAkte.Console.Test.Program.Main(String[] args) in D:\dev\test\LittleHelperApps\PdfAkte.Console.Test\Program.cs:Zeile 34.
ENTER zum Beenden
@schlumpfger
Thank you for the details.
We have logged a ticket with ID PDFNET-47297 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.
We are sorry for the inconvenience.