Re: svn: E125001: Can't determine the user's config path
Andy Levy <[email protected]> Sun, 15 Jan 2012 20:41:52 -0500
| Newsgroups | gmane.comp.version-control.subversion.tortoisesvn.user,gmane.comp.version-control.subversion.rapidsvn.devel |
|---|---|
| Message-ID | <CALb=wnnkThyPo+y3=ads4PTbAfpymEFJMKFjsicVD4Jvc4fO7Q@mail.gmail.com> |
On Sun, Jan 15, 2012 at 06:18, xiaobofei <xiaobofei-9Onoh4P/[email protected]> wrote: > Hi, > > I am trying to run a SVN(Subversion)command line tool from an ASP.NET > application. > > The command is "svn log d:\prog\prog.name". It works fine from command li= ne. > When i run it using System.Diagnostics.Process.Start(), it is not returni= ng > the data, instead if i read the standard error output, it is giving the > following message. > > svn: Can't determine the user's config path > > Here's the code i am using: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Dim=C2=A0pro=C2=A0As=C2= =A0New=C2=A0Process > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pro.StartInfo.FileName=C2= =A0=3D "C:\Program=C2=A0Files\TortoiseSVN\bin\svn.exe" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pro.StartInfo.Arguments= =C2=A0=3D"=C2=A0log d:\prog\prog.name" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pro.StartInfo.CreateNoWin= dow=C2=A0=3D=C2=A0True > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pro.StartInfo.UseShellExe= cute=C2=A0=3D=C2=A0False > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pro.StartInfo.RedirectSta= ndardOutput=C2=A0=3D=C2=A0True > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pro.StartInfo.RedirectSta= ndardError=C2=A0=3D=C2=A0True > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pro.StartInfo.RedirectSta= ndardInput=C2=A0=3D=C2=A0True > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Try > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0p= ro.Start() > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Catch=C2=A0ex=C2=A0As=C2= =A0Exception > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0R= esponse.Write(ex.Message) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0End=C2=A0Try > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tmpstr=C2=A0=3D=C2=A0pro.= StandardOutput.ReadToEnd.ToString > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tmpstr=C2=A0=3D=C2=A0pro.= StandardError.ReadToEnd.ToString > > it worked in xp os; > no i work it in the windows 7(server 2008),both failed! > any clues will be appreciated! Rather than run executables that aren't meant to be run within ASP.NET (your problem is that the account that the worker process runs under has no home directory, and thus no config directory), use the SharpSVN library in your code. It's the correct tool for the job. http://sharpsvn.open.collab.net/ If you insist upon continuing to do it the wrong way, you will need to pass the --config-dir parameter to svn.exe, with a valid path to a directory containing Subversion configuration files. ------------------------------------------------------ http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=3D4061&dsMessageI= d=3D2908999 To unsubscribe from this discussion, e-mail: [users-unsubscribe@tortoisesvn= .tigris.org].