Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

marcvanc

WebDAV access help needed

I have access to a WebDAV with WinSCP UI. No problem there. See png. I use following code snippet:
(It probably has something to do with TSL/SLL encryption, but I do not know what tot do)

Thank you for any help. Marc
Dim sessionOptions As New SessionOptions
With sessionOptions
   .Protocol = Protocol.Webdav
   .HostName = "xxx.xxxxx.xx"
   .PortNumber = 443
   .WebdavRoot = "/xxx/"
   .UserName = "xxx"
   .Password = "xxx"
End With
 
Using session As New Session
    session.Open(sessionOptions)

I Get the following error:
WinSCP.SessionRemoteException: Could not read status line: connection was closed by server ---> WinSCP.SessionRemoteException: Connection failed.