Post a reply

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)


Topic review


Re: Authentication issues using .NET libraries

Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.

Authentication issues using .NET libraries

I apologize if this has been asked already but I couldn't find anything in the search. I have a webdav server that I can connect to without any issues using the winscp gui application but cannot connect to through the .NET libraries. The following is a code snippet that creates a session and attempts to connect. I get a "Authentication failed. Could not authenticate to server: rejected Digest challenge Connection failed." error. I have attached logs from both the gui app and .NET code. This seems pretty straight forward but I cannot get it to connect. Thanks.

using (Session session = new Session())

    SessionOptions options = new SessionOptions
                                     Protocol = Protocol.Webdav,
                                     HostName =,
                                     UserName = "xxxxxxxxx",
                                     WebdavRoot = "/files",


    //unrelated code