Error using CC.NET v1.3.0.2918 and TFS plugin v1.3.0

Topics: User Forum
Sep 17, 2007 at 2:20 PM
I am trying to get CC.NET to work with the TFS plugin, but I just can't seem to get it to work.

I have downloaded CC.NET and the plugin, and copied the plugin files into my CC.NET/server directory.
I have also installed the tfs client (all the necessary tfs files are still in the GAC)

But when I try to run ccnet I get an exception immediatly:

----------
ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: Unable to instantiate CruiseControl projects from configuration document. Configuration document is likely missing Xml nodes required for properly populating CruiseControl configuration.No loaded type is marked up with a ReflectorType attribute that matches the Xml node (sourcecontrol). Xml Source: <sourcecontrol type="vsts" autoGetSource="true" applyLabel="true"><server>http://tfskrs:8080/</server><project>$/sense</project><workingDirectory>c:\source\</workingDirectory></sourcecontrol> ---> Exortech.NetReflector.NetReflectorException: No loaded type is marked up with a ReflectorType attribute that matches the Xml node (sourcecontrol). Xml Source: <sourcecontrol type="vsts" autoGetSource="true" applyLabel="true"><server>http://tfskrs:8080/</server><project>$/sense</project><workingDirectory>c:\source\</workingDirectory></sourcecontrol>
at Exortech.NetReflector.NetReflectorReader.Read(XmlNode node)
at ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader.Read(XmlDocument document)
--- End of inner exception stack trace ---
at ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader.Read(XmlDocument document)
at ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.Load(FileInfo configFile)
at ThoughtWorks.CruiseControl.Core.Config.FileConfigurationService.Load()
at ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService.Load()
at ThoughtWorks.CruiseControl.Core.Config.CachingConfigurationService.Load()
at ThoughtWorks.CruiseControl.Core.CruiseServer..ctor(IConfigurationService configurationService, IProjectIntegratorListFactory projectIntegratorListFactory, IProjectSerializer projectSerializer)
at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.Create(Boolean remote, String configFile)
at ThoughtWorks.CruiseControl.Core.ConsoleRunner.LaunchServer()
at ThoughtWorks.CruiseControl.Core.ConsoleRunner.Run()
at ThoughtWorks.CruiseControl.Console.ConsoleMain.Main(String[] args)
----------

Here is my ccnet.config file (I guess here is where I did something wrong)
----------
<cruisecontrol>
<sourcecontrol type="vsts" autoGetSource="true" applyLabel="true">
<server>http://tfs_wells:8080/</server>
<project>$/sense</project>
<workingDirectory>c:\source\</workingDirectory>
</sourcecontrol>
<!-- This is your CruiseControl.NET Server Configuration file. Add your projects below! -->
<!--
<project name="MyFirstProject" />
-->
</cruisecontrol>
----------

I have tried different configurations but they all say the same, no ReflectorType attribute to match the XML tag (sourcecontrol).

I hope you guys can help me out.

thanks in advance
-Thomas
Developer
Sep 18, 2007 at 11:12 PM
It looks like your ccnet.config file is missing the top-level <project /> node.

The <sourcecontrol> block should be placed inside a <project> node. Please refer to this page for more info: http://confluence.public.thoughtworks.org/display/CCNET/Project+Configuration+Block.