<?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>Code Sleuth's Blog &#187; TFS</title>
	<atom:link href="http://blog.codesleuth.co.uk/index.php/tag/tfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codesleuth.co.uk</link>
	<description>The .NET Pimp</description>
	<lastBuildDate>Wed, 24 Mar 2010 09:21:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>TFS 2008 Workgroup Edition: Build Service Account as Local System</title>
		<link>http://blog.codesleuth.co.uk/index.php/2008/10/23/tfs-2008-workgroup-edition-build-service-account-as-local-system/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2008/10/23/tfs-2008-workgroup-edition-build-service-account-as-local-system/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 10:27:24 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[TFS]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=144</guid>
		<description><![CDATA[At work we run Visual Studio Team Foundation Server 2008 Workgroup Edition for our 5 developers, and have set up a nightly build definition to allow us to verify each morning that the latest version of our project in source control is valid and working. When I first set this up, I had to ask [...]]]></description>
			<content:encoded><![CDATA[<p>At work we run Visual Studio Team Foundation Server 2008 Workgroup Edition for our 5 developers, and have set up a nightly build definition to allow us to verify each morning that the latest version of our project in source control is valid and working.</p>
<p>When I first set this up, I had to ask around our developers for a volunteer to be our &#8216;build service account&#8217; user, but as this person is part of the project we are working on, this wasn&#8217;t very ideal. Each morning I would find alert emails notifying me that this developer had changed all my work items and had completed a build (very hard to go through when auditing the build history, identifying which were automated and which were real work item changes).</p>
<p>In the end, I decided to look around to find a solution to using a Licensed User as the build account and use some other account. It didn&#8217;t matter which account would be used, but as long as it wasn&#8217;t one of the developers, I&#8217;d be happy.</p>
<p>I found an article on the <a href="http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/threads/" target="_blank">MSDN </a><span id="ctl00_ctl00_ctl01_MainContentPlaceHolder_Eyebrow"><a href="http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/threads/" target="_blank">Team Foundation Server &#8211; Build Automation</a> forums:</span></p>
<blockquote><p><em>If you configure it to use the TFS service account (just like the application pool hosting the application tier&#8217;s web services) you should be able to work-around this problem.</em></p></blockquote>
<p>I tried this, and was repeatedly faced with the following error when attempting to start the service:</p>
<blockquote><p><em>TF224004: The Visual Studio Team Foundation Build service failed to start because &lt;domain&gt;\TFSSERVICE does not have the required access permissions for address http://&lt;server&gt;:9191/Build/v2.0/AgentService.asmx.</em></p></blockquote>
<p>At first I thought this was a problem with SharePoint as the post suggested, but I couldn&#8217;t find anywhere to solve it.</p>
<p>To cut to the chase, <span style="text-decoration: underline;">I solved the problem by setting the service to run as the Local System account</span>. I had to add this account to the <strong>[SERVER]\Service Accounts</strong> group on TFS using TFSSecurity.exe. This can be done by spinning up an instance of Visual Studio Command Prompt on a machine that has Team Explorer installed, and entering the following command (this was used from a guide <a href="http://www.codeproject.com/KB/dotnet/tfssecuritytools.aspx" target="_blank">here</a>):</p>
<blockquote><p>tfssecurity.exe /server:&lt;server&gt; /g+ &#8220;[SERVER]\Service Accounts&#8221; &#8220;NT AUTHORITY\SYSTEM&#8221;</p></blockquote>
<p>After this was done, I checked in the TFS Group Membership dialogue under the [SERVER]Service Accounts group and confirmed that the service account had been added:</p>
<div id="attachment_145" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.codesleuth.co.uk/wp-content/uploads/2008/10/service-account.jpg"><img class="size-full wp-image-145" title="NT AUTHORITY\SYSTEM in the TFS Service Accounts group" src="http://blog.codesleuth.co.uk/wp-content/uploads/2008/10/service-account.jpg" alt="NT AUTHORITY\SYSTEM in the TFS Service Accounts group" width="500" height="381" /></a><p class="wp-caption-text">NT AUTHORITYSYSTEM in the TFS Service Accounts group</p></div>
<p>When attempting to spawn a build using this newly set up account, they seemed to fail because of access permissions to the drop folder. Indeed, the system account should already have access to the drop folder, and I verified this many times. However, I hadn&#8217;t considered that the account wasn&#8217;t on the sharing security list, as it was accessing the folder by network name &#8220;\\&lt;server&gt;\Builds&#8221; which had only read access for &#8220;Everyone&#8221;. I added the &#8220;SYSTEM&#8221; account to the list as read and change permissions:</p>
<div id="attachment_147" class="wp-caption aligncenter" style="width: 341px"><a href="http://blog.codesleuth.co.uk/wp-content/uploads/2008/10/share-permissions.jpg"><img class="size-full wp-image-147" title="SYSTEM on Drop folder permissions" src="http://blog.codesleuth.co.uk/wp-content/uploads/2008/10/share-permissions.jpg" alt="SYSTEM on Drop folder permissions" width="331" height="138" /></a><p class="wp-caption-text">SYSTEM on Drop folder permissions</p></div>
<p><strong>Success!</strong> The builds now run perfectly fine and I am now able to clarify the history of my builds and work items!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2008/10/23/tfs-2008-workgroup-edition-build-service-account-as-local-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting a Team Project from TFS 2008 and WSS</title>
		<link>http://blog.codesleuth.co.uk/index.php/2008/08/19/deleting-a-team-project-from-tfs-2008-and-wss/</link>
		<comments>http://blog.codesleuth.co.uk/index.php/2008/08/19/deleting-a-team-project-from-tfs-2008-and-wss/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 11:12:39 +0000</pubDate>
		<dc:creator>Sleuth</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Team System]]></category>
		<category><![CDATA[TFS]]></category>

		<guid isPermaLink="false">http://blog.codesleuth.co.uk/?p=118</guid>
		<description><![CDATA[Recently we tried to set up our VSS projects into TFS, but did it the wrong way to start with and decided to start again. So, we went about deleting our project from TFS&#8230; it seems TFS doesn&#8217;t allow that. Not to worry, we found this article explaining how to delete a project using: TfsDeleteProject [...]]]></description>
			<content:encoded><![CDATA[<p>Recently we tried to set up our VSS projects into TFS, but did it the wrong way to start with and decided to start again. So, we went about deleting our project from TFS&#8230; it seems TFS doesn&#8217;t allow that. Not to worry, we <a href="http://blog.benday.com/archive/2006/05/17/4394.aspx" target="_blank">found this article</a> explaining how to delete a project using:</p>
<pre>TfsDeleteProject /server:tfs-server-name "Project Name" /force</pre>
<p>This appeared to work except for the exception we got from SharePoint Services:</p>
<pre>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</pre>
<p>Fair enough, it seemed we had a problem that the team portal had broken somehow, but this was preventing us from re-creating the team project once more because the wizard was unable to create the site over the top of this one.</p>
<p>Unfortunately when attempting to browse to the site, we got a &#8220;400 Bad Request&#8221; error, and when attempting to delete the site using the Central Administration, we couldn&#8217;t select it from the list. The site truly seemed to be a ghost (or relic) of what was once a great site.</p>
<p>Fortunately, after my colleague <a href="http://clarktechie.wordpress.com/2007/05/31/delete-orphaned-sites-in-sharepoint/" target="_blank">found this article</a> explaining how to delete orphaned sites from WSS, we were able to <span style="text-decoration: underline;">solve the whole problem using step 2</span>: <strong>removing the WSS_Content database from WSS, and re-adding it.</strong></p>
<p>This idiotic process of deleting a team project certainly needs cleaning up in the next version, but for now, I hope this helps anyone else with this problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codesleuth.co.uk/index.php/2008/08/19/deleting-a-team-project-from-tfs-2008-and-wss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
