A: 

Not sure if it was an oversight in posting your xml files here, but you don't have an ending </project> in Test-project.xml.

Nick DeVore
A: 

ccnet.config:

<cruisecontrol xmlns:cb="urn:ccnet.config.builder"> 

    <!-- Standard Inits --> 
    <cb:define name="StandardInit-block">

     <!--<webURL>http://localhost/ccnet-dashboard/?_action_ViewProjectReport=true&amp;server=local&amp;project=Introvert&lt;/webURL&gt;--&gt;
     <artifactDirectory>D:\CC\$(ProjName)\artifact\</artifactDirectory> 
     <modificationDelaySeconds>120</modificationDelaySeconds> 

    </cb:define>

    <!-- Trigger run weekly --> 

    <!-- Vars $(TriggerTime), $(ProjName) --> 
    <cb:define name="WeeklyBuild-block"> 

     <triggers> 
      <scheduleTrigger time="$(TriggerTime)" buildCondition="ForceBuild" name="Nightly build at $(TriggerTime) for $(ProjName)"> 
       <weekDays> 
        <weekDay>Monday</weekDay> 
        <weekDay>Tuesday</weekDay> 
        <weekDay>Wednesday</weekDay> 
        <weekDay>Thursday</weekDay> 
        <weekDay>Friday</weekDay> 
       </weekDays>
      </scheduleTrigger> 
     </triggers> 

    </cb:define>

    <cb:include href="Test-project.xml" /> 

</cruisecontrol>

Test-project.xml:

<project name="Test" xmlns:cb="urn:ccnet.config.builder">

    <cb:scope
        TriggerTime="2:30"
        ProjName="Test"
        ProjStarPath="" >

    <!-- Standard block -->
    <cb:StandardInit-block/>

    <!-- Trigger block -->
    <cb:WeeklyBuild-block/>

    <tasks/>
    <publishers/>

    </cb:scope>
</project>

Having just run this lot through cruisecontrol on my box, the only problem i get is the URL in the ccnet.config file. remove that and the code i pasted above this text works fine.

Pondidum
Andy,I got invald xml when I removed xmlns:cb="urn:ccnet.config.builder". <tag></tag> is the same as <tag/> in xml. What is the name of the start tag you are refering to? Look at the source again. It is much more readable.
Eric Brown - Cal
I delete the Web line that your mentioned, but still no joy. I am running this on my workstation. My ccnet.config file lives in C:\Program Files\CruiseControl.NET\server. My test-project.xml lives in the same directory. When I start CC it says… No loaded type is marked up with Reflectory Type attribute that matches the xml node (#text). Is it possible that it can not find the xml file?
Eric Brown - Cal
Are you using the latest version of CruiseControl? i believe the <cb:scope> tag was a fairly recent addition.
Pondidum
Thanks Andy, that was it, My CruiseControl was not the latest.
Eric Brown - Cal
Glad you were able to solve it :)
Pondidum
+1  A: 

I also ran into this problem this week as I also decided to use this DRY approach for CruiseControl.

After starting the criusecontrol service (and it then quickly failing) I looked in the log file (C:\CruiseControl.NET\server\ccnet.log for me...) and I saw something like:

ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: Duplicate node detected: ... (rest of the node that's causing the issue)

That at least gave me an idea of what it was having a problem with.

Houndey
Houndey is right, if you look in your logs, it will tell you what the duplicate node is...
Alex