When installing TFS2010 (or upgrading on new hardware) with SharePoint Foundation (wss 4.0) it can not be done with the installer setting up wss. You need to install and prepare SharePoint before configuration of TFS. This can be done as described in the following blog post:
There is one added security setting which you might have to tweak also in SharePoint Foundation and which has been changed since wss 3.0. You need to change the security on files other than aspx to "Permissive". The default security setting is Strict, which gives you the:
"Do you want to save this File"
when you try to access html files. E.g. the wiki.
How to change to "permissive" security is described in the following blog:
One further note if you want to use EMC SCRUM for Team system v.3 on SharePoint Foundation 2010 and get the error:
TF249033: The site template is not available for the locale identifier (LCID). The site template name is: SCRUM
Then apply the fix in the following post:
And remember to change the powershell script line with the suggestions in the blog comments ("LiteralPath" instead of "FileName")