Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8605723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:54:36+00:00 2026-06-12T02:54:36+00:00

If you have experience with using the SharpSvn .NET library, I could use your

  • 0

If you have experience with using the SharpSvn .NET library, I could use your expertise in setting the commit author during an SVN commit. I’ve tried a few things, but they all throw an SvnRepisitoryIOException unless the user is saved in TortoiseSVN. However, I want to use different user credentials depending on the situation. If I’ve saved a user’s default credentials, TortoiseSVN remembers them in Settings > Saved Data > Authenticated Data, and is able to commit a file using that authenticated user as the commit author. If you click “Clear” here, SharpSVN won’t know who to authenticate during a commit.

Assume you have these directives in your class: using SharpSvn;
using SharpSvn.Security; I’m using the free version of VisualSVN server for Windows. And I have two users, one being named “user1” and password of “pass1” to keep things simple in the examples below that failed.

How can I prevent this exception from being thrown and commit using different users for the author (in my log of the commit)?

Attempt #1:

    using (SvnClient client = new SvnClient())
    { 
        client.Authentication.Clear();  // Clear a previous authentication 
        client.Authentication.DefaultCredentials = new System.Net.NetworkCredential("user1", "pass1");

        SvnCommitArgs ca = new SvnCommitArgs();
        ca.LogMessage = "svn log message created at " + DateTime.Now.ToString();
        bool action = client.Commit(@"C:\demo_repo\demo_project\trunk\file.txt", ca);
    }

Attempt #2:

    using (SvnClient client = new SvnClient())
    {
        client.SetProperty(("", "svn:author", "user1");

        SvnCommitArgs ca = new SvnCommitArgs();
        ca.LogMessage = "svn log message created at " + DateTime.Now.ToString();
        bool action = client.Commit(@"C:\demo_repo\demo_project\trunk\file.txt", ca);
    }

Attempt #3:

    using (SvnClient client = new SvnClient())
    {
        client.Authentication.Clear(); // Clear predefined handlers
        client.Authentication.UserNamePasswordHandlers
            += delegate(object obj, SharpSvn.Security.SvnUserNamePasswordEventArgs args)
        {
            args.UserName = "user1";
            args.Password = "pass1";
        }; 

        SvnCommitArgs ca = new SvnCommitArgs();
        ca.LogMessage = "svn log message created at " + DateTime.Now.ToString();
        bool action = client.Commit(@"C:\demo_repo\demo_project\trunk\file.txt", ca);
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:54:37+00:00Added an answer on June 12, 2026 at 2:54 am

    After getting the stack trace when running the application as an administrator, I was able to catch the exception using the framework and accept the non trusted certificate issuer.

    *Unhandled Exception: SharpSvn.SvnRepositoryIOException: Commit Failed (details follow): ===> SharpSvn.SvnRepositoryIOException: Unable to connect to a repository at URL ‘https://mycomputer/svn/demo_repo/demo_project/trunk/file.txt’ –> SharpSvn.SvnRepositoryIOException: OPTIONS of ”: Server certificate verification failed: issuer is not trusted (https://mycomputer)
    — End of inner exception stack trace —
    — End of inner exception stack trace —
    at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)
    at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, svn_error_t* error, Object targets)
    …..*

    New Code:

                client.Authentication.Clear(); // Clear predefined handlers
                client.Authentication.UserNamePasswordHandlers
                    += delegate(object obj, SharpSvn.Security.SvnUserNamePasswordEventArgs args)
                {
                    args.UserName = "user1";
                    args.Password = "pass1";
                }; 
    
                client.Authentication.SslServerTrustHandlers​ +=
                delegate(object sender, SvnSslServerTrustEventArgs e)
                {
                  e.AcceptedFailures = e.Failures;
                  e.Save = true; // Save acceptance to authentication store
                };
    
                SvnCommitArgs ca = new SvnCommitArgs();
                ca.LogMessage = "svn log message created at " + DateTime.Now.ToString();
                bool action = client.Commit(@"C:\demo_repo\demo_project\trunk\file.txt", ca);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some experience using parallel extensions in .Net development, but I was looking
I'm new to grails, but have previous experience using .net with c# and linq
I have a small amount of experience using SVN on my development projects, and
I have experience using packages in Java. I am now using Namespaces in .NET.
Has anyone have good experience using SQLAPI++ Library? ( connecting C++ and SQL )
Many might have had experience using File Upload widget from Yahoo User Interface library
Does anyone have experience using ASP.NET MVC project as a Web Service? i.e. using
Does anyone have any experience using PHP to send an sms via skype I
I have very little experience using Sharepoint but a good amount using Visual Studio
I have experience developing in android and using REST services, but now I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.