LINQ Demo from Heroes Community Launch

Sorry for the lack of post lately.  My family just finished moving into a new house and my life has been a whirlwind.  Hopefully, we are on the downside and I can start focusing on Technology related stuff again.  Honestly, hanging curtain rods is not my idea of a great weekend...

Anyway, I wanted to drop the demo code, DB script and slides out here so people can take a look.  I had a great time doing the presentation with Eric Johnson.  Even though Eric is a DBA he is still a good guy.  Who knew that some DBAs actually have a soul?  Seriously though, I've been hanging out with the Springs SQL Server User Group for awhile now and they are a great resource when I come across SQL related issues.  Check them out if you haven't already.

Here is the Zip of all the materials from my session:

LINQHeroesLaunch.Zip

TFS Error - Command "exited with code 1" during build

We recently made some modification to our Team Foundation build server.  Ever since then my automated builds started getting this random error.

error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\..\tf.exe" workfold /map /workspace:"CTCTFSBUILD1_23" /server:http://servername:8080/ "$/myproject/Current2008/LumenWorks.Framework.IO" "c:\builddir\myproject\IB - Workflow\BuildType\..\Sources\myproject\Current2008\LumenWorks.Framework.IO"" exited with code 1.

It was a weird error because usually if I just started the build again it would complete successfully the next time.  It finally got annoying enough that I did some research and solved the problem.  It was a timeout issue.  So, if there was a heavy load on the build server my build would fail.  Here is the command that was causing the issue.

<Exec WorkingDirectory="$(SolutionRoot)" Command="&quot;$(TfCommand)&quot; workfold /map /workspace:&quot;$(WorkSpaceName)&quot; /server:$(TeamFoundationServerUrl) &quot;%(Map.Identity)&quot; &quot;%(Map.LocalPath)&quot;" />

Turns out there is "Timeout" property you can set.  I think the default is 30 seconds, but I upped it to 2 minutes just to make sure I didn't timeout due to server load.  Here is the command after I fixed it.

<Exec Timeout="120000" WorkingDirectory="$(SolutionRoot)" Command="&quot;$(TfCommand)&quot; workfold /map /workspace:&quot;$(WorkSpaceName)&quot; /server:$(TeamFoundationServerUrl) &quot;%(Map.Identity)&quot; &quot;%(Map.LocalPath)&quot;" />

I'm not sure how many people are running into this issue, but it was hard to track down so I posted it here and hopefully it will save some other people some time.