Question

When I launch CruiseControl.NET with a particular configuration file I receive the following error:

ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: Duplicate node detected

What does this mean, and what causes it?

Was it helpful?

Solution

I think you have 2 nodes in your config where it only expected one. Is there any chance you could post the config file it is throwing the exception on here as additional information? I'm using cruisecontrol (not the .net version) currently and find it can be very picky about it's XML files (rightly so) but not tell you anything about where in the file the exceptions were thrown from.

OTHER TIPS

I found that I had an incorrectly structured config file. In particular, some blocks were outside of the configuration section. The error pointed to the second of these exec sections- apparently it didn't like that there was more than one of a given section inside the project.

Thus, the error occurred due a config file like this:

<project>
  <tasks>
    ...
  </tasks>
  <exec>...</exec>
  <exec>...</exec>
<project>

In my case I had something like:

<task>...</task>
<sourceControls>...</sourceControls>
<task>...</task>
<publishers>...</publishers>

It didn't like the two "<task>" nodes so I fixed it by removing the first "<task>" node. I was trying to do some stuff before getting the latest from svn, and then doing the build after that in the second "<task>" node. I'll need to revisit how to do that...any suggestions?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top