# TFS 2010 GET runs into failed

**URL:** https://www.finalbuilder.com/forums/t/tfs-2010-get-runs-into-failed/1969
**Category:** Discussion
**Created:** [April 16, 2012, 5:26am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-get-runs-into-failed/1969 "2012-04-16T05:26:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 16, 2012, 5:26am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-get-runs-into-failed/1969/1 "2012-04-16T05:26:34Z")

</div>

Hi Guys,

I'm not sure if i did something wrong, all works well with tfs 2008 before, but last weekend, we created a new server using TFS 2010, it works very well with Visual Studio, but my old FinalBuilder which works well with tfs2008&nbsp;doesn' work any more, i struggled with it for a long time, and here is the error message when doing a simple "Team Foundation Get" operation.

_Path to Executable: c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe  
Workspace Directory: C:\ThinkGeo\MapSuite3.0\Development\Core  
Command line: get /login:"Acount",\*PASSWORD\* . /all /overwrite /recursive /noprompt_

_Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.  
&nbsp;&nbsp; at Microsoft.TeamFoundation.VersionControl.CommandLine.CommandGet.Run()  
&nbsp;&nbsp; at Microsoft.TeamFoundation.VersionControl.CommandLine.VersionControlCommandLine.RunCommand(String commandName, String[] args, Boolean& showExitCode)  
&nbsp;&nbsp; at Microsoft.TeamFoundation.Client.CommandLine.RunCommand(String[] args)  
&nbsp;&nbsp; at Microsoft.TeamFoundation.Client.CommandLine.Run(String[]& args)  
&nbsp;&nbsp; at Microsoft.TeamFoundation.VersionControl.CommandLine.VersionControlCommandLine.Main(String[] args)  
Failed!_

We are using FinalBuild 7.0.0.515. It's critical for us now, can you focus on it with a high priority?

&nbsp;

Looking forward to your response.

Thanks,

Johnny

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 16, 2012, 6:10am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-get-runs-into-failed/1969/2 "2012-04-16T06:10:18Z")

</div>

Hi Johnny,   
This appears to be an exception that tf.exe is generating (tf is Microsoft’s command line tool for TFS). To confirm this, can you please run the following from the command prompt;   
  
[code]c:cd C:\ThinkGeo\MapSuite3.0\Development\Core"c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe" get /login:“Acount”,[your password here] . /all /overwrite /recursive /noprompt[/code]  
Cheers,   
  
Ben

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 16, 2012, 6:50am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-get-runs-into-failed/1969/3 "2012-04-16T06:50:22Z")

</div>

Ben,   
  
 Thank you very much for the reply. I runs the script you gave, but seems that it runs into error and gives the same exception. How should we do now?   
  
 Please help.   
  
 Thanks,   
 Jaohnny

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 16, 2012, 6:50am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-get-runs-into-failed/1969/4 "2012-04-16T06:50:23Z")

</div>

Ben,   
  
 Thank you very much for the reply. I runs the script you gave, but seems that it runs into error and gives the same exception. How should we do now?   
  
 Please help.   
  
 Thanks,   
 Jaohnny

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 16, 2012, 7:56am UTC](https://www.finalbuilder.com/forums/t/tfs-2010-get-runs-into-failed/1969/5 "2012-04-16T07:56:42Z")

</div>

Hi Ben,   
  
 Thank you very much, it’s caused by the Tfs client cache, if we change to a new Tfs server, we should clear the client cache at first and then everything goes well, i think you guys can these enhancements to you product, because if we use the Visual Studio tfs client, it works fine, as far as i guess, they should a check before connecting to tfs, if it’s same to the before, it will generate a complete new cache, otherwise use the old one.   
  
 Thanks and Best Regards!   
 Johnny
