CCNET 1.5 and TFS 2010 integration

Topics: Developer Forum, User Forum
Aug 10, 2010 at 8:51 AM

Hi All,

I am facing problem while connecting CCNET1.5 with TFS 2010. My operating system is Window server 2008 R2 standard.

TFS is working fine and is accessible easily through URL as well as VS2010.

I configured my ccnet.config as follows:

    <!-- This is your CruiseControl.NET Server Configuration file. Add your projects below! -->
  <project name="TestCCNETApplication">
    <sourcecontrol type="filtered">
      <sourceControlProvider type="vsts" autoGetSource="true" applyLabel="true">
        <server>http://[server name]:8080/tfs</server>
        <executable>C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe</executable>
       <project>$/test/Source Code/TestCCNetApplication</project>


when I run cruise console, I get following error on console:

[TestCCNETApplication:WARN] Source control failure (GetModifications): TF31002:
Unable to connect to this Team Foundation Server: http://[server name]:8080/tfs.
Team Foundation Server Url: http://[server name]:8080/tfs.

Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect
- The Team Foundation Server is offline.
- The password has expired or is incorrect.

Technical information (for administrator):
The request failed with HTTP status 404: Not Found.

Please provide quick solution for it if any one already have faced the same.

Note: I have tried connecting to server without username, password and domain detail.

Thanks for your helps in advance..

Sep 7, 2010 at 10:25 AM

i have got the same pb and find a solution
it seems that TF.exe use windows credential instead of plain text user/pwd
so, you have to remove all  this part from your CCNET config:


your CCNET server have to run with the credential of an user that is authorized to access TFS (start the server from the commande line while logged with the correct account, or modify the connection account of the windows service in the admin console of your system).

the Workspace is verified by TFS, so you have to use a proper Workspace that have been associated with that account.

finally the workingDirectory has to be the same that have been used in the Workspace.

it's quite restricting , but in that way it works....





Oct 9, 2010 at 3:28 AM

You must add collection name to the server tag.

<server>http://[server name]:8080/tfs/CollectionName</server>

Nov 10, 2011 at 10:37 AM

Note that if your collection name contains a space, you must place the whole thing in double quotes:

<server>"http://[server name]:8080/tfs/Collection Name"</server>