Discussion:
Error: System.IO.IOException with SVN.EXE
Keith McCreery
2005-09-06 12:01:52 UTC
Permalink
I am receiving the following error with CruiseControl.NET v1.0 RC1
(build 1070)

System.IO.IOException: Unable to execute file [c:\program
files\subversion\bin\svn.exe]. The file may not exist or may not be
executable. ---> System.ComponentModel.Win32Exception: The directory
name is invalid
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
startInfo)
at System.Diagnostics.Process.Start()
at
ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor.Start(ProcessInfo
processInfo)
--- End of inner exception stack trace ---
at
ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor.Start(ProcessInfo
processInfo)
at
ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor.Execute(ProcessInfo
processInfo)
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execu
te(ProcessInfo processInfo)
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications(IInte
grationResult from, IIntegrationResult to)
at
ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificatio
ns(ISourceControl sourceControl, IIntegrationResult from,
IIntegrationResult to)
at
ThoughtWorks.CruiseControl.Core.IntegrationRunner.RunIntegration(BuildCo
ndition buildCondition)

For some reason, it does not like my subversion path. My config file is
as follows...

...
<sourcecontrol type="svn">
<executable>c:\program
files\subversion\bin\svn.exe</executable>

<trunkUrl>svn://cs-sql/dev/project/csi/editor/trunk</trunkUrl>

<workingDirectory>c:\dev\project\csi\editor\</workingDirectory>
</sourcecontrol>
...

I have tried relative paths, executable only, double slashes, etc... No
luck

Does anyone have any suggestions? Subversion is installed and working
correctly. Subversion version is 1.1.1. Subversion (svn.exe) is in the
PATH. The directory name/path is correct.

Thanks,
Keith McCreery


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Mike Roberts
2005-09-06 12:12:51 UTC
Permalink
If svn is in your path, try changing the <executable> tag to just
contain svn.exe.

Mike
Post by Keith McCreery
I am receiving the following error with CruiseControl.NET v1.0 RC1
(build 1070)
System.IO.IOException: Unable to execute file [c:\program
files\subversion\bin\svn.exe]. The file may not exist or may not be
executable. ---> System.ComponentModel.Win32Exception: The directory
name is invalid
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Adam Jack
2005-09-06 13:50:10 UTC
Permalink
Keith,

Maybe the problem you are facing is the same as mine this weekend, when
I got this message. CruiseControl.Net doesn't seem to create the working
directory that it attempts to run SVN in. Meaning -- rather than it
being the path to SVN that is the problem, it is the path that it is
trying to change directories to, to run SVN. If so, manually create that
directory. I'd also run SVN checkout the first time also, allowing CCNet
to simply "svn update".

Regards,

Adam
-----Original Message-----
From: Mike Roberts [mailto:mike.b.roberts-***@public.gmane.org]
Sent: Tuesday, September 06, 2005 6:13 AM
To: ccnet-user-5NWGOfrQmneRv+***@public.gmane.org
Subject: Re: [Ccnet-user] Error: System.IO.IOException with SVN.EXE

If svn is in your path, try changing the <executable> tag to just
contain svn.exe.

Mike
Post by Keith McCreery
I am receiving the following error with CruiseControl.NET v1.0 RC1
(build 1070)
System.IO.IOException: Unable to execute file [c:\program
files\subversion\bin\svn.exe]. The file may not exist or may not be
executable. ---> System.ComponentModel.Win32Exception: The directory
name is invalid
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Ccnet-user mailing list
Ccnet-user-5NWGOfrQmneRv+***@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/ccnet-user




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Keith McCreery
2005-09-06 15:08:11 UTC
Permalink
Everyone,

Thanks for all the pointers.

Adam's resolution fixed my problem. It appears the CruiseControl.NET
doesn't like the fact that my SVN working directory does not exists. If
I perform an initial CheckOut, thereby creating my the working directory
- directory structure, all is well.

Thanks,
Keith McCreery

-----Original Message-----
From: Chris Stevenson [mailto:zhcchz-***@public.gmane.org]
Sent: Tuesday, September 06, 2005 11:03 AM
To: ccnet-user-5NWGOfrQmneRv+***@public.gmane.org
Cc: Keith McCreery
Subject: [SPAM] - Re: [Ccnet-user] Error: System.IO.IOException with
SVN.EXE - Email found in subject
Post by Keith McCreery
System.IO.IOException: Unable to execute file [c:\program
files\subversion\bin\svn.exe]. The file may not exist or may not be
executable. ---> System.ComponentModel.Win32Exception: The directory
name is invalid
<sourcecontrol type="svn">
<executable>c:\program
files\subversion\bin\svn.exe</executable>
Also, double check that your editor hasn't put a hard carriage return
in c:\program files - it is suspicious that both times it appears in
your message it seems to have a hard return.

chris


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Owen Rogers
2005-09-11 19:06:32 UTC
Permalink
btw, this issue has been fixed post-RC1 and thus will be part of the
1.0 release.
cheers,
owen.
Post by Keith McCreery
Everyone,
Thanks for all the pointers.
Adam's resolution fixed my problem. It appears the CruiseControl.NET
doesn't like the fact that my SVN working directory does not exists. If
I perform an initial CheckOut, thereby creating my the working directory
- directory structure, all is well.
Thanks,
Keith McCreery
--
Owen Rogers | http://dotnetjunkies.com/weblog/exortech |
CruiseControl.NET - http://ccnet.thoughtworks.com


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Chris Stevenson
2005-09-06 15:02:36 UTC
Permalink
Post by Keith McCreery
System.IO.IOException: Unable to execute file [c:\program
files\subversion\bin\svn.exe]. The file may not exist or may not be
executable. ---> System.ComponentModel.Win32Exception: The directory
name is invalid
<sourcecontrol type="svn">
<executable>c:\program
files\subversion\bin\svn.exe</executable>
Also, double check that your editor hasn't put a hard carriage return
in c:\program files - it is suspicious that both times it appears in
your message it seems to have a hard return.

chris


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Loading...