<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Elegant Code &#187; CruiseControl.NET</title>
	<atom:link href="http://elegantcode.com/tag/cruisecontrolnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Sun, 12 Feb 2012 04:40:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Vault and CruiseControl.NET Error: Working Folder State Problem</title>
		<link>http://elegantcode.com/2009/07/01/vault-and-cruisecontrolnet-error-working-folder-state-problem/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vault-and-cruisecontrolnet-error-working-folder-state-problem</link>
		<comments>http://elegantcode.com/2009/07/01/vault-and-cruisecontrolnet-error-working-folder-state-problem/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 16:23:54 +0000</pubDate>
		<dc:creator>Tony Rasa</dc:creator>
				<category><![CDATA[Source Control]]></category>
		<category><![CDATA[CruiseControl.NET]]></category>
		<category><![CDATA[Vault]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2009/07/01/vault-and-cruisecontrolnet-error-working-folder-state-problem/</guid>
		<description><![CDATA[This is one of those problems that teaches humility.&#160; I’m posting this here because the solution is a) trivially obvious, any fool could see it and b) I completely overlooked the obvious solution and maybe a google “hint” would have saved me some time. At Blackfin, we use SourceGear Vault and CruiseControl.net. (We’re moving to [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of those problems that teaches humility.&#160; I’m posting this here because the solution is a) trivially obvious, any fool could see it and b) I completely overlooked the obvious solution and maybe a google “hint” would have saved me some time.</p>
<p>At <a href="http://www.blackfin.com" target="_blank">Blackfin</a>, we use SourceGear Vault and CruiseControl.net. (We’re moving to Subversion and TeamCity, but that’s a different post.)&#160; One of our projects on one of our CC.NET servers was failing with this exception:</p>
<p><font face="Courier New">“The working folder state information for C:\CruiseControl.NET\Build\MyProject\working is incompatible with this version of Vault.&#160; Please choose a different working folder path.&#160; The specific compatibility exception was: Could not detect the file type in the supplied stream.”</font></p>
<p>Vault likes to litter your system with lots of little state files, and on rare occasion these files get corrupted.&#160; To fix, you just <a href="http://support.sourcegear.com/viewtopic.php?t=6" target="_blank">delete the local cache directories</a>, re-get repositories, and you’re on your way again.&#160; Piece of cake.&#160; </p>
<p>I deleted all the cache files on this server, from C:\Documents and Settings\{username}\Local Settings\Application Data\SourceGear.&#160; To be thorough, I delete all the cache files I can find for all users.&#160; BUT, the exceptions continue.</p>
<p>Thinking to myself, “well obviously I’ve not deleted the right directory” I run a search for all directories named “Vault_1”, which turns up…nothing.</p>
<p>What follows next is a bunch of flailing about, checking for cc.net bugs, and to sum up: grasping at straws.&#160; What *should* have happened is that I re-read the exception and think carefully about what causes it: a corrupted state file that I haven’t deleted yet.</p>
<p>I run CruiseControl.Net as a service, under the local NetworkService account.&#160; Therefore, I [failed to] reason, the cache files must be in C:\Documents and Settings\NetworkService\Local Settings\Application Data\SourceGear.&#160; But I couldn’t find this directory on the system.&#160; Except that the NetworkService directory is marked as a “protected Operating System file”.&#160; Remember that Folder option “Hide protected operating system files (recommended)” that you always switch off and ignore the dialog box that pops up?&#160; It was still checked…</p>
<p>Uncheck that dumb setting, go into the directory, delete the cache, and now the build works again.&#160; </p>
<p>Lesson: sometimes exceptions tell you exactly what’s wrong.&#160; Don’t be so quick to search for exotic solutions when the obvious one is staring you in the face.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2009/07/01/vault-and-cruisecontrolnet-error-working-folder-state-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

