Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I'm using Sharp SVN, so I have a request: How can check the credential before checkout?

I want connect to SVN (OK)
Check User and Password (??)
IF authentication is OK, checkout.

Actually I use:

Program: Client.CheckOut(new Uri(Program.SVN_Media_URI),Program.DirMedia);

and if credential is bad I have an exception, but I want verify the credential
BEFORE CHECKOUT !! can any one help me???
Posted

1 solution

Refer - SVN Repository Authentication using SharpSVN[^]
Quote:
Use the Authenticate properties of SVNClient:

C#
client.Authentication.Clear(); // Clear a previous authentication
client.Authentication.DefaultCredentials = new System.Net.NetworkCredential("user", "password");

 
Share this answer
 
Comments
suman palla 4-Dec-14 2:10am    
I already tried with the below one.. Its not working to validate user before Checkout..
client.Authentication.Clear(); // Clear a previous authentication
client.Authentication.DefaultCredentials = new System.Net.NetworkCredential("user", "password");

I want verify the credential
BEFORE CHECKOUT
What happens with the code? Any Exception? Have you debugged?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900