Marcel de Vries has a great post on fixing an (apparently common) problem with Visual Studio Team Foundation Server and Windows SharePoint Services SP2. I recently had this problem, and he rescued me from much frustration. Check it out here:
http://blogs.infosupport.com/marcelv/archive/2005/10/10/1443.aspx