The only solution is then to start with an empty project and then
gradually add items until it crashes.
Sure you have the same version of ccnet, but you don't have the same
environment on your two machines.

On 11 août, 14:41, jim_offroadcode <[email protected]>
wrote:
> Thanks for the reply. Th problem is that an install of the same
> version of ccnet on a different machine is successfully loading the
> config in both ccnet.exe and the validator.
>
> I've have never had Powershell installed for previous ccnet
> installations which worked without any problem but at this stage i'm
> happy to try anything that might get ccnet working again correctly.
>
> On Aug 11, 1:25 pm, OBones <[email protected]> wrote:
>
> > It would be quite useful to have what's inside the project block. You
> > can even find what is causing trouble by stripping everything then
> > readding progressively.
>
> > For instance, I have discovered that CCValidator crashes if the
> > computer does not have powershell installed but the config file uses
> > it.
>
> > On 11 août, 13:25, 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