[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 319
  • Last Modified:

running svn update from .net

If I run svn update from command prompt everything works fine but if I try to run it from a .net process I get the following error.
Eventhough I setup .net to run as the same user.
If i'm getting the below error I think it's because its actually trying to use svn under a different user that doesnt have the info saved. How can I save the login for whichever user .net is trying to run under...

C:\path>svn update
 Error validating server certificate for 'http://mysvnsite':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: mysvnsite
 - Valid: from Wed, 03 Dec 2008 05:22:17 GMT until Thu, 08 Dec 2011 05:22:17 GMT
 - Issuer: Myissuer
 - Fingerprint:
(R)eject, accept (t)emporarily or accept (p)ermanently? svn: OPTIONS of 'mysvnsite': Server certificate verification failed: issuer is not trusted (https://mysvnsite)
 

0
NewtonianB
Asked:
NewtonianB
  • 2
1 Solution
 
SriVaddadiCommented:
WindowsIdentity.GetCurrent()

You could impersonate to that user. But I guess the problem here is to do with the certificate If i get it right.
0
 
NewtonianBAuthor Commented:
Thanks SriVaddadi, something else must be wrong because I just checked the identity of the running process in release mode and it was the same user i am logged in to.
SO anyways I need to figure out how to save and accept the certificate through .net
0
 
SriVaddadiCommented:
I would suggest to see if you could pass the certificate through svn update command. As far as I know we cannot.
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now