Articy Forum

Connect to SVN from sharpsvn

Page 1 of 1

Connect to SVN from sharpsvn

Posted: Fri 27. Oct 2017, 15:34
by andrey_st
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

Re: Connect to SVN from sharpsvn

Posted: Wed 1. Nov 2017, 15:32
by andrey_st

thanks a lot

All times are UTC
Page 1 of 1