Connect to SVN from sharpsvn

Fri 27. Oct 2017, 15:34

I want to save some data for my Macro Devkit Plugin. For example - custom comment system, like in lucidchart. I have created new folder in project dir. My own plugin open it and then create file with comment in text file.

I use sharpsvn 1.7 to connect

client.LoadConfiguration(Session.GetProjectFolderPath(), true);
client.Configuration.SetOption("servers", "global", "http-auth-types", "basic;digest");
client.Authentication.DefaultCredentials = new NetworkCredential("user", "password");

string folder = Session.GetProjectFolderPath()+ "\\CommentarySystem";
if (!Directory.Exists(folder))
Directory.CreateDirectory(folder );
client.Add(folder );
SvnCommitArgs ca = new SvnCommitArgs();
ca.LogMessage = "Init comment folder";
client.Commit(folder, ca);

but th result is

SharpSvn.SvnAuthorizationException occurred

Inner Exception 1:
SvnAuthorizationException: Unable to connect to a repository at URL 'svn://local:16708/supergame/CommentarySystem'

Inner Exception 2:
SvnAuthorizationException: Authentication error from server: Password incorrect
Posts: 9
Joined: Fri 27. Oct 2017, 14:36

Re: Connect to SVN from sharpsvn

Wed 1. Nov 2017, 15:32


thanks a lot
Posts: 9
Joined: Fri 27. Oct 2017, 14:36

Return to articy:draft Macro Devkit

Who is online

Users browsing this forum: No registered users and 2 guests

Who We Are
Contact Us
Social Links