Authentication issues using .NET libraries

Advertisement

clayton.page
Joined:
Posts:
1
Location:
Canada

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 = xxx.xxx.xxx.xxx,
                                     UserName = "xxxxxxxxx",
                                     WebdavRoot = "/files",
                                 };

    session.Open(options);

    //unrelated code
}
Description: GUI log
Description: .NET log

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,392
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum