<?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>TechNullogy &#187; TFS</title>
	<atom:link href="http://www.technullogy.net/index.php/tag/tfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.technullogy.net</link>
	<description>Musings of a convert to nerdism</description>
	<lastBuildDate>Thu, 22 Jul 2010 19:43:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>TFS: How to fix the Red X of Death on the Report Folder in Team Explorer</title>
		<link>http://www.technullogy.net/index.php/2010/03/13/tfs-how-to-fix-the-red-x-of-death-on-the-report-folder-in-team-explorer/</link>
		<comments>http://www.technullogy.net/index.php/2010/03/13/tfs-how-to-fix-the-red-x-of-death-on-the-report-folder-in-team-explorer/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 00:39:56 +0000</pubDate>
		<dc:creator>MJ Hufford</dc:creator>
				<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[Team Explorer]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio Team System]]></category>

		<guid isPermaLink="false">http://www.technullogy.net/?p=279</guid>
		<description><![CDATA[Awhile back, I upgraded our Team Foundation Server to 2008 SP1 and our SQL 2005 server to 2008.  It took a bit of finagling to get everything working right.  Google was my friend and I was able to solve all but one nagging issue.  Have you ever seen the little red &#8220;x&#8221; on your Report [...]]]></description>
			<content:encoded><![CDATA[<p>Awhile back, I upgraded our Team Foundation Server to 2008 SP1 and our SQL 2005 server to 2008.  It took a bit of finagling to get everything working right.  Google was my friend and I was able to solve all but one nagging issue.  Have you ever seen the little red &#8220;x&#8221; on your Report folder in Team Explorer?  He and I have been fighting for a few weeks.</p>
<p><a rel="attachment wp-att-285" href="http://www.technullogy.net/index.php/2010/03/13/tfs-how-to-fix-the-red-x-of-death-on-the-report-folder-in-team-explorer/tfsreportsredx/"><img class="aligncenter size-full wp-image-285" title="TfsReportsRedX" src="http://www.technullogy.net/wp-content/uploads/2010/03/TfsReportsRedX.png" alt="" width="163" height="103" /></a></p>
<p>I came across several forum posts that all seemed logical.  Here are the steps I took to get it fixed:</p>
<ol>
<li>Configure registry to use FQDN -&gt; Edit each of the following registry keys accordingly:
<ol>
<li>HKLM\Software\Microsoft\VisualStudio\9.0\TeamFoundation\ReportServer\443\Sites\BaseReportsUrl</li>
<li>HKLM\Software\Microsoft\VisualStudio\9.0\TeamFoundation\ReportServer\443\&lt;ProjectName&gt;\ReportsService</li>
<li>HKLM\Software\Microsoft\VisualStudio\9.0\TeamFoundation\ReportServer\80\Sites\BaseReportsUrl</li>
<li>HKLM\Software\Microsoft\VisualStudio\9.0\TeamFoundation\ReportServer\80\&lt;ProjectName&gt;\ReportsService</li>
</ol>
</li>
<li>Configure connections in TFS
<ol>
<li>Option 1:
<ol>
<li>Browse to C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Tools</li>
<li>Run<strong> </strong>TfsAdminUtil.exe configureconnections /view</li>
<li>Ensure that ReportsUri is set to http://&lt;ReportServerUrl&gt;/Reports (or https for SSL)<br />
SET: TfsAdminUtil.exe configureconnections  /reportsuri:http://&lt;ReportServerUrl&gt;/Reports</li>
<li>Ensure that ReportServerUri is set to http://&lt;ReportServerUrl&gt;/ReportServer/ReportService.asmx (or https for SSL)<br />
SET: TfsAdminUtil.exe configureconnections /reportserveruri:http://&lt;ReportServerUrl&gt;/ReportServer/ReportService.asmx</li>
</ol>
</li>
<li>Option 2 (easier IMHO):
<ol>
<li>Use SQL Management Studio to connect to your TFS SQL Server</li>
<li>Run this query against the TfsIntegration database: SELECT * FROM dbo.tbl_service_interface</li>
<li>Look for 2 records that look like these and make sure they&#8217;re accurate:<br />
ReportsService    http://&lt;ReportServerUrl&gt;/ReportServer/ReportService.asmx<br />
BaseReportsUrl    http://&lt;ReportServerUrl&gt;/Reports</li>
</ol>
</li>
</ol>
</li>
</ol>
<p>At this point, I thought I was done.  The red x stared smugly into my eyes.  Alright, it must be server cache.  Reboot the server and restart VS.  He&#8217;s still there.  He&#8217;s laughing at me at this point.  I finally realized that the properties of that folder (in Team Explorer) still had the wrong url.  The cache was client side.  DIRTY!</p>
<p><a rel="attachment wp-att-281" href="http://www.technullogy.net/?attachment_id=281"></a><a rel="attachment wp-att-286" href="http://www.technullogy.net/index.php/2010/03/13/tfs-how-to-fix-the-red-x-of-death-on-the-report-folder-in-team-explorer/tfsreportredxclientcache/"><img class="aligncenter size-full wp-image-286" title="TfsReportRedxClientCache" src="http://www.technullogy.net/wp-content/uploads/2010/03/TfsReportRedxClientCache.png" alt="" width="336" height="299" /></a></p>
<p>You can clear you client cache like this:</p>
<ol>
<li>Close Visual Studio</li>
<li>Browse to c:\users\%username%\appdata\local\microsoft\team foundation\2.0</li>
<li>Delete the cache folder</li>
</ol>
<p>Now launch Visual Studio and rejoice!</p>
<p><a rel="attachment wp-att-282" href="http://www.technullogy.net/index.php/2010/03/13/tfs-how-to-fix-the-red-x-of-death-on-the-report-folder-in-team-explorer/tfsreportsfixed/"><img class="aligncenter size-full wp-image-282" title="TfsReportsFixed" src="http://www.technullogy.net/wp-content/uploads/2010/03/TfsReportsFixed.png" alt="" width="293" height="193" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.technullogy.net/index.php/2010/03/13/tfs-how-to-fix-the-red-x-of-death-on-the-report-folder-in-team-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Recover Deleted TFS Files and Folders</title>
		<link>http://www.technullogy.net/index.php/2010/03/03/how-to-recover-deleted-tfs-files-and-folders/</link>
		<comments>http://www.technullogy.net/index.php/2010/03/03/how-to-recover-deleted-tfs-files-and-folders/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 21:04:47 +0000</pubDate>
		<dc:creator>MJ Hufford</dc:creator>
				<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[File Recovery]]></category>
		<category><![CDATA[Source Control]]></category>
		<category><![CDATA[TFS]]></category>

		<guid isPermaLink="false">http://www.technullogy.net/?p=250</guid>
		<description><![CDATA[I recently went in search for a &#8220;how to&#8221; regarding file and folder recovery in Microsoft Team Foundation Server.  One of our project files was corrupted and removed its reference to an ascx file, but left the .cs and .designer.cs files behind; ultimately breaking the build on our continuous integration server.  Google doth continue to [...]]]></description>
			<content:encoded><![CDATA[<p>I recently went in search for a &#8220;how to&#8221; regarding file and folder recovery in Microsoft Team Foundation Server.  One of our project files was corrupted and removed its reference to an ascx file, but left the .cs and .designer.cs files behind; ultimately breaking the build on our continuous integration server.  Google doth continue to rock.  I quickly found a solution.   It&#8217;s relatively easy:</p>
<ol>
<li>In Visual Studio, click on Tools -&gt; Options -&gt; (make sure the &#8220;show all items&#8221; check box is checked) -&gt; Source Control -&gt; Visual Studio Team Foundation Server</li>
<li>Check the “Show deleted items in the Source Control Explorer” check box<br />
<a rel="attachment wp-att-251" href="http://www.technullogy.net/index.php/2010/03/03/how-to-recover-deleted-tfs-files-and-folders/showtfsdeleteditems/"><img class="aligncenter size-medium wp-image-251" title="ShowTfsDeletedItems" src="http://www.technullogy.net/wp-content/uploads/2010/03/ShowTfsDeletedItems-300x176.jpg" alt="" width="300" height="176" /></a></li>
<li>Click &#8220;OK&#8221;</li>
<li>In Team Explorer, open Source Control<br />
<a rel="attachment wp-att-252" href="http://www.technullogy.net/index.php/2010/03/03/how-to-recover-deleted-tfs-files-and-folders/deletedtfsitems/"><img class="aligncenter size-medium wp-image-252" title="DeletedTfsItems" src="http://www.technullogy.net/wp-content/uploads/2010/03/DeletedTfsItems-300x147.jpg" alt="" width="300" height="147" /></a></li>
<li>Then just right-click and click &#8220;Undelete&#8221; -&gt; sooooo not a real word</li>
</ol>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.technullogy.net/index.php/2010/03/03/how-to-recover-deleted-tfs-files-and-folders/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Listing checked-out files in Team Foundation Server 2008 (TFS)</title>
		<link>http://www.technullogy.net/index.php/2009/09/18/listing-checked-out-files-in-team-foundation-server-2008-tfs/</link>
		<comments>http://www.technullogy.net/index.php/2009/09/18/listing-checked-out-files-in-team-foundation-server-2008-tfs/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 18:20:59 +0000</pubDate>
		<dc:creator>MJ Hufford</dc:creator>
				<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Source Control]]></category>
		<category><![CDATA[TFS]]></category>

		<guid isPermaLink="false">http://www.technullogy.net/?p=172</guid>
		<description><![CDATA[I needed a list of all checked-out files in TFS today.  This page came in handy! Thanks Clay!  Here&#8217;s what he had to say (slightly modified for VS 2008) You can get a complete list of checked out files by using the tf.exe command line tool found in: C:\Program Files\Microsoft Visual Studio 9\Common7\IDE or C:\Program [...]]]></description>
			<content:encoded><![CDATA[<p>I needed a list of all checked-out files in TFS today.  <a href="http://clay.lenharts.net/blog/2008/01/28/listing-checked-out-files-in-team-system-tfs/">This page came in handy!</a> Thanks Clay!  Here&#8217;s what he had to say (slightly modified for VS 2008)</p>
<div>
<p>You can get a complete list of checked out files by using the tf.exe command line tool found in: C:\Program Files\Microsoft Visual Studio 9\Common7\IDE or C:\Program Files (x86)\Microsoft Visual Studio 9\Common7\IDE for you 64 bitters.</p>
<p>All checked out files in $/MyProject:</p>
<pre>tf.exe status $/MyProject /user:* /s:http://MyTfs:8080 /recursive</pre>
<p>All files checked out to Mark:</p>
<pre>tf.exe status /user:mark /s:http://MyTfs:8080</pre>
<p>You can write the output to a file:</p>
<pre>tf.exe status /user:* /s:http://MyTfs:8080 &gt; c:\tfsCheckedOut.txt</pre>
<p><a href="http://www.box.net/shared/6a0n3k7vn9">I also created this little batch file</a> that will automatically output results to your desktop.  It&#8217;s very simplistic, but saves time having to mess with the command prompt.  Edit with your favorite text editor, save, and away you go.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.technullogy.net/index.php/2009/09/18/listing-checked-out-files-in-team-foundation-server-2008-tfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Silverlight Projects with Automated Team Builds: XAP Issues</title>
		<link>http://www.technullogy.net/index.php/2009/06/25/building-silverlight-projects-with-automated-team-builds-xap-issues/</link>
		<comments>http://www.technullogy.net/index.php/2009/06/25/building-silverlight-projects-with-automated-team-builds-xap-issues/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 20:15:46 +0000</pubDate>
		<dc:creator>MJ Hufford</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Automated Build]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[XAP]]></category>

		<guid isPermaLink="false">http://www.technullogy.net/?p=60</guid>
		<description><![CDATA[We recently added a Silverlight project to a web application. When we would build the solution locally, it worked great! However, when we would check-in to the Team Foundation Server (TFS 2008), the automated builds were breaking with an error like this one: "error MSB3021: Unable to copy file "BLA-BLA-BLA\Silverlight.xap" to "BLA-BLA-BLA\ClientBin\Silverlight.xap". Could not find [...]]]></description>
			<content:encoded><![CDATA[<p>We recently added a Silverlight project to a web application.  When we would build the solution locally, it worked great!  However, when we would check-in to the Team Foundation Server (TFS 2008), the automated builds were breaking with an error like this one:</p>
<pre>"error MSB3021: Unable to copy file "BLA-BLA-BLA\Silverlight.xap" to
"BLA-BLA-BLA\ClientBin\Silverlight.xap".
Could not find a part of the path 'BLA-BLA-BLA\Silverlight.xap'.</pre>
<p>We decided to remove the .xap file from source control to avoid the broken builds.  Not a very elegant solution, eh?</p>
<p>While digging around the net today, I found an article that saved the day. <a href="http://www.corvalius.com/blog/?p=35">Thanks Corvalius!</a> Here is the solution I implemented to resolve the problem:</p>
<ol>
<li>Open <strong>Team </strong>Explorer as an administrator</li>
<li>In Source Control, navigate to your .xap file(s)</li>
<li>Right-click the file and click on &#8220;Properties&#8221;</li>
<li>Select the &#8220;Security&#8221; tab</li>
<li>Select the &#8220;Build Services&#8221; group and set the &#8220;Read&#8221; permission to &#8220;Deny&#8221;</li>
<li>Do the dance of joy</li>
</ol>
<p>Step 6 is optional, but highly recommended and hard to resist.</p>
<p>UPDATE:</p>
<p>After upgrading to Team Foundation Server / Visual Studio 2010, I ran into an issue where the build agent said that access to the path of my .XAP file was denied.  To fix it, just follow the steps listed above using the new TFS 2010 collection based build group:</p>
<p><a rel="attachment wp-att-296" href="http://www.technullogy.net/index.php/2009/06/25/building-silverlight-projects-with-automated-team-builds-xap-issues/accesstoxapdenied/"><img class="aligncenter size-medium wp-image-296" title="AccessToXapDenied" src="http://www.technullogy.net/wp-content/uploads/2009/06/AccessToXapDenied-300x259.png" alt="" width="300" height="259" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.technullogy.net/index.php/2009/06/25/building-silverlight-projects-with-automated-team-builds-xap-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
