We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Saving to UNC path fails

Hey,

when simply loading and saving a html document with Aspose.Html 21.8.0.0, the following exception is thrown:


HResult=0x80131500
Nachricht = Failed to parse URL: fs1/R/temp/msc/SimpleDocument.html
Quelle = Aspose.HTML
Stapelüberwachung:
bei . [T](String , Object[] )
bei Aspose.Html.Url…ctor(String url, String baseUrl)
bei .​ ( )
bei .​ ( )
bei .​ ( )
bei .​ ( )
bei .​ ( )
bei .​ ( )
bei .(String , Url , Func2 , List1 )
bei .(String , Func2 , List1 )
bei .(Node , String )
bei Aspose.Html.HTMLDocument.Save(Url url, HTMLSaveOptions saveOptions)
bei Aspose.Html.HTMLDocument.Save(String path)
bei BS.Documents.Atlanta.Client.ViewModels.TestViewModel.VB$StateMachine_1_ExecuteAsync.MoveNext()

This is the code I am using:

Dim path As String = “\\fs1\R\temp\msc\SimpleDocument.html”
Dim htmlDocument As New Aspose.Html.HTMLDocument(path)
htmlDocument.Save(path)

The sample file is attached.
SimpleDocument.zip (211 Bytes)

This might be similar to the following thread:

Regards

Mark

@msc.bs

Can you please try to use 22.8 version of the API and let us know in case issue still persists? Also, please make sure that your application or program has write access to the path where you are trying to save the file.

The issue remains with 22.08. I do have write access. A workaround with an IOutputStorage combined with a simple System.IO.FileStream works.

Regards

Mark

@msc.bs

Could you please share a bit about the environment details where you are using the API like OS Name, Application Type, Or any server information?