<?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>Personal website of Dave Hope &#187; Team Foundation Server</title>
	<atom:link href="http://davehope.co.uk/Blog/tag/team-foundation-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://davehope.co.uk</link>
	<description>Open source projects, sysadmin stuff and general geekage</description>
	<lastBuildDate>Tue, 18 May 2010 11:46:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Deleting the TFS workspace for a missing account fails (TF50605)</title>
		<link>http://davehope.co.uk/Blog/deleting-the-tfs-workspace-for-a-missing-account-fails-tf50605/</link>
		<comments>http://davehope.co.uk/Blog/deleting-the-tfs-workspace-for-a-missing-account-fails-tf50605/#comments</comments>
		<pubDate>Thu, 13 May 2010 14:24:40 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Team Foundation Server]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/?p=557</guid>
		<description><![CDATA[Having decommissioned a few legacy AD DS domains over the last year or so we&#8217;ve had a few references in TFS to missing accounts. When attempting to delete the workspace you get the following error: TF50605: There was an error looking up the SID for OLD-DOMAIN\CCNETNIGHTLYBUILD. In order to delete the workspace, we need to [...]]]></description>
			<content:encoded><![CDATA[<p>Having decommissioned a few legacy AD DS domains over the last year or so we&#8217;ve had a few references in TFS to missing accounts. When attempting to delete the workspace you get the following error:</p>
<pre>TF50605: There was an error looking up the SID for OLD-DOMAIN\CCNETNIGHTLYBUILD.</pre>
<p>In order to delete the workspace, we need to remap it to a valid user account. Here&#8217;s the process to do just that.</p>
<p>Firstly, we should list the workspaces on this computer we&#8217;re having problems with (in this case, BUILDSERVER01).</p>
<pre>C:\&gt;tf workspaces /owner:* /server:http://tfs-server:8080 | findstr BUILDSERVER01
Workspace		Owner				Computer	Comment
----------------------- ------------------------------- --------------- -------------------------------
BUILDSERVER01		saCCNetNightly			BUILDSERVER01	Temporary CruiseControl.NET Wo
BUILDSERVER01		OLD-DOMAIN\CCNETNIGHTLYBUILD	BUILDSERVER01 	Temporary CruiseControl.NET Wo
BUILDSERVER01		saCCNetNightly			BUILDSERVER01
</pre>
<p>We may as well attempt to delete the workspace, though the process is likely to fail as it wont be able to resolve the SID if the domain is no longer available.</p>
<pre>C:\&gt;tf workspace /delete /server:http://tfs-server:8080 BUILDSERVER01;OLD-DOMAIN\CCNETNIGHTLYBUILD
<span style="color: red;">TF50605: There was an error looking up the SID for OLD-DOMAI\CCNETNIGHTLYBUILD.</span></pre>
<p>At this point, we need to open up the <em>TfsVersionControl </em>table and manually point the workspaces to a valid identity. The first stage is to identify the ID of the missing account:</p>
<pre>SELECT IdentityId FROM tfsVersionControl.tbl_Identity WHERE (DisplayName LIKE 'OLD-DOMAIN\CCNETNIGHTLYBUILD')</pre>
<p>Now that we have the ID, we can locate the workspaces the owner has on the server we&#8217;re having problems with.</p>
<pre>SELECT WorkspaceId, OwnerId, WorkspaceName FROM tfsVersionControl.tbl_Workspace WHERE (OwnerId = 311) AND (Computer = 'BUILDSERVER01')</pre>
<p>We should now update the <em>tfsVersionControl.tbl_Workspace</em> table with a valid IdentityId from the <em>tfsVersionControl.tbl_Identity</em> table. Once that&#8217;s done, try the delete command again:</p>
<pre>C:\&gt;tf workspace /delete /server:http://tfs-server:8080 "BUILDSERVER01;Dave Hope"
A deleted workspace cannot be recovered.
Workspace 'BUILDSERVER01;Dave Hope' on server 'http://tfs-server:8080' has 0 pending change(s).
Are you sure you want to delete the workspace? (Yes/No) Yes</pre>
<p>And hey presto, the workspace is gone.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/deleting-the-tfs-workspace-for-a-missing-account-fails-tf50605/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving Team Foundation Server</title>
		<link>http://davehope.co.uk/Blog/moving-team-foundation-server/</link>
		<comments>http://davehope.co.uk/Blog/moving-team-foundation-server/#comments</comments>
		<pubDate>Sun, 27 May 2007 08:52:43 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Team Foundation Server]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/Beta/wordpress/Blog/moving-team-foundation-server/</guid>
		<description><![CDATA[For scalability and performance reasons I had to move our Team Foundation Server over the bank holiday weekend and thanks to some superb Microsoft documentation it was a fairly easy process. The documentation may at first seem fairly daunting just by the length of it, but most of it is just cretinous things like how [...]]]></description>
			<content:encoded><![CDATA[<p>For scalability and performance reasons I had to move our Team Foundation Server over the bank holiday weekend and thanks to some <a href="http://msdn2.microsoft.com/en-us/library/ms404869(VS.80).aspx">superb Microsoft documentation</a> it was a fairly easy process.</p>
<p>The documentation may at first seem fairly daunting just by the length of it, but most of it is just cretinous things like how to backup and restore databases. Moving a TFS server is actually not all that bad.</p>
<p>That said, there are some mistakes in the current version of the microsoft documentation which i&#8217;ll correct below</p>
<p>When you come to restore the report server Step 19 should say:</p>
<pre>
SetupWarehouse.exe -o -s newDataTierServerName -d newTeamFoundationDataWarehouseName \
-c warehouseschema.xml -ra TFSReportServiceAccount -a TFSServiceAccount \
-mturl http://newTeamFoundationSercer:8080</pre>
<p>There are parts when you&#8217;re asked to do various things to the TFS &amp; WSS websites, if you get an error make sure the application pool for that website is started. Microsoft tell you to stop them and forget to tell you to start them again.</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/moving-team-foundation-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TFS SP1 Problems</title>
		<link>http://davehope.co.uk/Blog/tfs-sp1-problems/</link>
		<comments>http://davehope.co.uk/Blog/tfs-sp1-problems/#comments</comments>
		<pubDate>Thu, 08 Mar 2007 08:58:52 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Team Foundation Server]]></category>

		<guid isPermaLink="false">http://davehope.co.uk/Beta/wordpress/Blog/tfs-sp1-problems/</guid>
		<description><![CDATA[Had to upgrade our Team Foundation to SP1 today, part of which required &#8220;KB919156&#8243;. What fun I had. The error I was getting was the following: The application pool identity required by Team Foundation Server (TFSWSS) for the content virtual server is not using the Team Foundation Server service account. To proceed, you must exit [...]]]></description>
			<content:encoded><![CDATA[<p>Had to upgrade our Team Foundation to SP1 today, part of which required &#8220;KB919156&#8243;. What fun I had. The error I was getting was the following:<br />
<code>The application pool identity required by Team Foundation Server (TFSWSS) for the content virtual server is not using the Team Foundation Server service account. To proceed, you must exit setup, set the application pool identity (TFSWSS) to use the Team Foundation Server service account, and then run setup again.</code></p>
<p>That translates to &#8220;DDSetStatus:The content app pool must be configured to use the TFS service account&#8221; in the MSI log file if you enable logging.</p>
<p>After an hour of battling with it and googling with no real results other than &#8220;reinstall&#8221; (not an option) I solved my problems by doing the following:</p>
<p>Ensure all Sts* and TFS* app pools run under the account you want TFS to run under (e.g. NWTRADERS.MSFT\TeamServer) and ensure the MsiProperty.INI (located in C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Microsoft Visual Studio 2005 Team Foundation Server &#8211; ENU) has the correct values for VSTF_RS_USERID and VSTF_DOMAIN. E.g.:<code>VSTF_RS_USERID=TeamServer<br />
VSTF_DOMAIN=NWTRADERS.MSFT</code></p>
<div class="sponsoredWords">In <a href="http://www.envisionwebhosting.com/dedicated-servers.htm">dedicated hosting</a> the user gets the full control over the web hosting. If you have a big organization this is the <a href="http://www.envisionwebhosting.com">cheap web hosting</a> for you. You can have as many <a href="http://www.envisionwebhosting.com/domain-registration.htm">domain name registration</a> as you wish. Our <a href="http://www.envisionwebhosting.com/web-design.php">web design</a> tools are the best to build the seo related websites.</div>
<p>This occurred in our setup because we&#8217;d intially used local SAM accounts to run the services for TFS and later migrated to AD ones. Even if you run the TFSAdminUtil MsiProperty.INI doesn&#8217;t get updated. Neat, eh?</p>
]]></content:encoded>
			<wfw:commentRss>http://davehope.co.uk/Blog/tfs-sp1-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
