Failed to access Version Control Service (TFS)

Hi!

We are using 64bit Windows 7 as a build server and we have had Final Builder 7 installed there for some time now and it's working fine. We also have Visual Studio 2012 installed and TFS connection works as it should. 

I just installed ContinuaCI 64bit version but could not create new repository for some reason. I get the following error when project wizard tries to validate TFS connection:

Unexpected error reported from server: Running C:\Program Files (x86)\VSoft Technologies\ContinuaCI\Server\Continua.Modules.Builds.TeamFoundation.exe failed and threw exception : Running C:\Program Files (x86)\VSoft Technologies\ContinuaCI\Server\Continua.Modules.Builds.TeamFoundation.exe failed with return code: 2 and error output: Error communicating with TFS server, please check all fields and try again. Error details: An unexpected error occurred: Continua.TFS.Common.TFSClientException: Failed to access Version Control Service of http://our_tfs_server:8080/tfs : Could not load type 'Microsoft.TeamFoundation.Client.BasicAuthCredential' from assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. at Continua.TFS.Common.TFSClientBase.GetVersionControlServer(String server, String username, String password, Boolean useBasicAuth) at Continua.TFS.Common.TFSClientBase.Connect(String server, String username, String password, Boolean useBasicAuth) at Continua.Modules.Builds.TeamFoundation.StubHelper.PerformOperation(String[] args) at Continua.Modules.Builds.TeamFoundation.Program.Main(String[] args) (Args were : http://our_tfs_server:8080/tfs $/Base -1 True 2012 False eu\svc_autobuild ************)

Same error comes when I try to run same command from the command line.

Then I uninstalled 64bit version and installed 32bit version of ContinuaCI...Same error. The error message shown in this message is after 32bit installation but it's basically the same for 64bit.

How to solve this problem? I tried also installing TFS Power Tools 2012 but it didn't help.

Br,

Kalle

Can you check that you have Update 1 (or newer) installed for Visual Studio 2012? That update includes enhancements to the TFS client object model which we reference to support using alternate credentials to connect to services using LiveID.

Hello,

I was able to make this TFS connection error go away by installing VS2012 update 2 but I'm not sure if that was the real fix because I had some problem with the parameters also (TFS server path etc.). I managed to get some "Object reference not set to an instance of an object" exceptions though when playing around with TFS parameters in Repository settings in ContinuaCI web interface.

Then I got some errors about log creation failure when running configuration and uninstalled 32bit ContinuaCI and reinstalled 64bit version. Now I have been able to start builds but for some reason I could not get my Final Builder project loaded correctly in stage's Final Builder Build runner -> I get Stage error saying that directory is invalid... So every build fails.

The action that was executing threw an exception that was not handled.
Exception: Win32Exception Message: The directory name is invalid Stack Trace: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at Continua.Stepping.Actions.ExecuteAction`1.Execute(TContext context)

How to specify Final Builder project file to Build runner? My project file is in TFS folder like: $/Apps/Dashboard/Dev/Autobuild/Dashboard_Autobuild.fbz7

Br,

Kalle


Hi Kalle,

We will look into the “Object reference not set to an instance of an object” exception - can you remember which combination of parameters caused this and do you have the stack trace?

To access the FinalBuilder project file you need to use $Source.TFS_Source$ where TFS_Source is the name of your repository. 

e.g. $Source.TFS_Source$\Apps\Dashboard\Dev\Autobuild\Dashboard_Autobuild.fbz7


Note that you also need to check that your repository rules and workspace rules are set up to copy the relevant files to the Continua agent.


Recommended reading:

Expressions: http://wiki.finalbuilder.com/x/nAEK

Build workspace: http://wiki.finalbuilder.com/x/KAAZ

Repository rules: http://wiki.finalbuilder.com/x/AgEZ