Hi Ruben. Thanks for your reply. Really appreciate you taking time to
help.

What is frustrating is that my fresh CCNet installation is failing
with an example config file from the FAQs/Setup tutorial.

<cruisecontrol>
    <project>
        <name>SimpleExample</name>

        <triggers />

        <tasks>
            <exec>
                <executable>c:\projects\test.cmd</executable>
            </exec>
        </tasks>
    </project>
</cruisecontrol>


Throws this exception:


2010-08-16 10:01:19,390 [CCNet Server:ERROR] INTERNAL ERROR:
System.Xml.Xsl.Runtime.StringConcat.ConcatNoDelimiter(System.String)
----------
System.MethodAccessException:
System.Xml.Xsl.Runtime.StringConcat.ConcatNoDelimiter(System.String)
   at System.Xml.XmlEventCache.WriteString(String text)
   at
System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStringUnchecked(String
text)
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template
name="EvalTextConstants">(XmlQueryRuntime {urn:schemas-microsoft-
com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-
debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position,
Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1
{urn:schemas-microsoft-com:xslt-debug}namespaces) in :line 25
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template
match="text()">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
Double {urn:schemas-microsoft-com:xslt-debug}position, Double
{urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
microsoft-com:xslt-debug}namespaces) in :line 41
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
runtime, XPathNavigator , Double , Double )
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="node()"
priority="-3">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
Double {urn:schemas-microsoft-com:xslt-debug}position, Double
{urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
microsoft-com:xslt-debug}namespaces) in :line 16
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
runtime, XPathNavigator , Double , Double )
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="node()"
priority="-3">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
Double {urn:schemas-microsoft-com:xslt-debug}position, Double
{urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
microsoft-com:xslt-debug}namespaces) in :line 16
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
runtime, XPathNavigator , Double , Double )
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="node()"
priority="-3">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
Double {urn:schemas-microsoft-com:xslt-debug}position, Double
{urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
microsoft-com:xslt-debug}namespaces) in :line 16
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
runtime, XPathNavigator , Double , Double )
   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
runtime, XPathNavigator , Double , Double )
   at System.Xml.Xsl.CompiledQuery.Query.Root(XmlQueryRuntime
{urn:schemas-microsoft-com:xslt-debug}runtime)
   at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime
{urn:schemas-microsoft-com:xslt-debug}runtime)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
XmlResolver dataSources, XsltArgumentList argumentList,
XmlSequenceWriter results)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
writer, Boolean closeWriter)
   at System.Xml.Xsl.XmlILCommand.Execute(XmlReader contextDocument,
XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
results)
   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input,
XsltArgumentList arguments, XmlWriter results, XmlResolver
documentResolver)
   at
ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessor.PreProcess(XmlReader
input, XmlWriter output, PreprocessorUrlResolver resolver, Uri
input_uri) in c:\Documents and Settings\Jim  McKerchar\My Documents
\Work\project\core\configuration\preprocessor
\ConfigPreprocessor.cs:line 90
   at
ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.CreateXmlValidatingLoader(FileInfo
configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
\Work\project\core\configuration
\DefaultConfigurationFileLoader.cs:line 76
   at
ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.AttemptLoadConfiguration(FileInfo
configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
\Work\project\core\configuration
\DefaultConfigurationFileLoader.cs:line 57
   at
ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.Load(FileInfo
configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
\Work\project\core\configuration
\DefaultConfigurationFileLoader.cs:line 35
   at
ThoughtWorks.CruiseControl.Core.Config.FileConfigurationService.Load()
in c:\Documents and Settings\Jim  McKerchar\My Documents\Work\project
\core\configuration\FileConfigurationService.cs:line 23
   at
ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService.Load()
in c:\Documents and Settings\Jim  McKerchar\My Documents\Work\project
\core\configuration\FileWatcherConfigurationService.cs:line 26
   at
ThoughtWorks.CruiseControl.Core.Config.CachingConfigurationService.Load()
in c:\Documents and Settings\Jim  McKerchar\My Documents\Work\project
\core\configuration\CachingConfigurationService.cs:line 20
   at
ThoughtWorks.CruiseControl.Core.CruiseServer..ctor(IConfigurationService
configurationService, IProjectIntegratorListFactory
projectIntegratorListFactory, IProjectSerializer projectSerializer,
IProjectStateManager stateManager, IFileSystem fileSystem,
IExecutionEnvironment executionEnvironment, List`1 extensionList) in c:
\Documents and Settings\Jim  McKerchar\My Documents\Work\project\core
\CruiseServer.cs:line 74
   at
ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateLocal(String
configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
\Work\project\core\CruiseServerFactory.cs:line 33
   at
ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateRemote(String
configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
\Work\project\core\CruiseServerFactory.cs:line 64
   at
ThoughtWorks.CruiseControl.Core.CruiseServerFactory.Create(Boolean
remote, String configFile) in c:\Documents and Settings\Jim  McKerchar
\My Documents\Work\project\core\CruiseServerFactory.cs:line 69
   at ThoughtWorks.CruiseControl.Core.ConsoleRunner.LaunchServer() in
c:\Documents and Settings\Jim  McKerchar\My Documents\Work\project\core
\ConsoleRunner.cs:line 80
   at ThoughtWorks.CruiseControl.Core.ConsoleRunner.Run() in c:
\Documents and Settings\Jim  McKerchar\My Documents\Work\project\core
\ConsoleRunner.cs:line 58
   at ThoughtWorks.CruiseControl.Console.AppRunner.Run(String[] args,
Boolean usesShadowCopying) in c:\Documents and Settings\Jim  McKerchar
\My Documents\Work\project\console\AppRunner.cs:line 67
----------



The only time i can get ccnet.exe tpo start successfully is by
removing all but the cruisecontrol block...

<cruisecontrol></cruisecontrol>


Regards
Jim


On Aug 13, 7:28 pm, Ruben Willems <[email protected]> wrote:
> Hi
>
> can you post your config?
>
> with kind regards
> Ruben Willems
>
> On Wed, Aug 11, 2010 at 1:25 PM, jim_offroadcode <
>
> [email protected]> wrote:
> > Wondering if anyone can help...
>
> > I'm trying to fix some of the errors we're getting on our build server
> > (which i've posted about in this group) so i installed CCNet
> > 1.5.7256.1 on my local machine. However it is having problems starting
> > the server. The console outputs '[CCNet Server:INFO] Reading
> > configuration file "C:\Program Files\CruiseControl.NET\server
> > \ccnet.config"'  and then a big red ERROR section.
>
> > I thought maybe i had an error in my config so tried with the default
> > config file provided with the install. The server starts ok with the
> > default config file (i.e. with nothing except the <cruisecontrol>
> > block but as soon as add any <project> blocks it is throwing an
> > exception. It does this when starting cruisecontrol and when
> > validating the file using ccvalidator.
>
> > This only happens on my local install. The CCValidator on the build
> > machine itself opens and validates our main config file without any
> > problems.
>
> > This is the error being thrown....
>
> > 2010-08-11 11:52:51,390 [7] ERROR CruiseControl.NET [(null)] -
> > INTERNAL ERROR:
> > System.Xml.Xsl.Runtime.StringConcat.ConcatNoDelimiter(System.String)
> > ----------
> > System.MethodAccessException:
> > System.Xml.Xsl.Runtime.StringConcat.ConcatNoDelimiter(System.String)
> >   at System.Xml.XmlEventCache.WriteString(String text)
> >   at
> > System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStringUnchecked(String
> > text)
> >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template
> > name="EvalTextConstants">(XmlQueryRuntime {urn:schemas-microsoft-
> > com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-
> > debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position,
> > Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1
> > {urn:schemas-microsoft-com:xslt-debug}namespaces) in :line 25
> >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template
> > match="cb:include">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-
> > debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}
> > current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double
> > {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
> > microsoft-com:xslt-debug}namespaces) in :line 61
> >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> > templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> > runtime, XPathNavigator , Double , Double )
> >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="node()"
> > priority="-3">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> > runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
> > Double {urn:schemas-microsoft-com:xslt-debug}position, Double
> > {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
> > microsoft-com:xslt-debug}namespaces) in :line 16
> >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> > templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> > runtime, XPathNavigator , Double , Double )
> >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> > templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> > runtime, XPathNavigator , Double , Double )
> >   at System.Xml.Xsl.CompiledQuery.Query.Root(XmlQueryRuntime
> > {urn:schemas-microsoft-com:xslt-debug}runtime)
> >   at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime
> > {urn:schemas-microsoft-com:xslt-debug}runtime)
> >   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
> > XmlResolver dataSources, XsltArgumentList argumentList,
> > XmlSequenceWriter results)
> >   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
> > XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
> > writer, Boolean closeWriter)
> >   at System.Xml.Xsl.XmlILCommand.Execute(XmlReader contextDocument,
> > XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
> > results)
> >   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input,
> > XsltArgumentList arguments, XmlWriter results, XmlResolver
> > documentResolver)
> >   at
>
> > ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessor.PreProcess(XmlReader
> > input, XmlWriter output, PreprocessorUrlResolver resolver, Uri
> > input_uri)
> >   at
>
> > ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.CreateXmlValidatingLoader(FileInfo
> > configFile)
> >   at
>
> > ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.AttemptLoadConfiguration(FileInfo
> > configFile)
> >   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.Restart()
> >   at
> > ThoughtWorks.CruiseControl.Core.Config.ConfigurationUpdateHandler.Invoke()
> >   at
>
> > ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService.HandleConfigurationFileChanged(Object
> > source, FileSystemEventArgs args)
> > ----------
>
>

Reply via email to