3
            client.Authentication.DefaultCredentials = new NetworkCredential("login",
                                                                "pswd",
                                                                 new Uri("address").AbsoluteUri);
            client.Authentication.SslServerTrustHandlers += delegate(object sender, SvnSslServerTrustEventArgs e)
            {
                e.AcceptedFailures = e.Failures;
                e.Save = true; // Save acceptance to authentication store
            };

I try to connect to read-only repo, and it gives me an exception:

'Unable to connect to a repository at URL'|'Access Forbidden'

URL and login\password are correct, of course.

Tried to connect from VisualSVN and TotroiseSVN and it is all right, no problems.

But SharpSVN gives me a headache with that stuff.

bahrep
  • 29,961
  • 12
  • 103
  • 150
animekun
  • 1,789
  • 4
  • 28
  • 45

1 Answers1

4

Try this

client.Authentication.ForceCredentials("login", "pswd");
nameless323
  • 160
  • 7