I would recommend going through the config doc and making sure that you have all the required attributes for each section.
One thing you should do is delete your publishers section, since it isn't doing anything and since you specify it your are loosing the <xmllogger /> that is put in be default if you have not publishers section. Or you can add <xmllogger /> to it... not sure if this is the issue though. You can also try to run ccnet /validate and it will check your config. BOb On Dec 2, 2:59 pm, Lars Zeb <[EMAIL PROTECTED]> wrote: > I am trying to setup CC for the first time. After cleaning up errors > in ccnet.config, I am stumped on what to do next. > > I launched CC from the console and get a "INTERNAL ERROR: Object > reference not set to an instance of an object" error. > > Can anyone point me in the right direction? > > Thanks, Lars > > ccnet.log: > > 2008-12-02 11:48:47,218 [CCNet Server:DEBUG] The trace level is > currently set to debug. This will cause CCNet to log at the most > verbose level, which is useful for setting up or debugging the > server. Once your server is running smoothly, we recommend changing > this setting in C:\Program Files\CruiseControl.NET\server > \ccnet.exe.config to a lower level. > 2008-12-02 11:48:47,250 [CCNet Server:INFO] Reading configuration file > "C:\Program Files\CruiseControl.NET\server\ccnet.config" > 2008-12-02 11:48:47,484 [CCNet Server:ERROR] INTERNAL ERROR: Object > reference not set to an instance of an object. > ---------- > System.NullReferenceException: Object reference not set to an instance > of an object. > at Exortech.NetReflector.XmlMemberSerialiser.Read(XmlNode > childNode, Type instanceType, NetReflectorTypeTable table) > at Exortech.NetReflector.XmlMemberSerialiser.Read(XmlNode node, > NetReflectorTypeTable table) > at Exortech.NetReflector.XmlTypeSerialiser.ReadMembers(XmlNode > node, Object instance, NetReflectorTypeTable table) > at Exortech.NetReflector.XmlTypeSerialiser.Read(XmlNode node, > NetReflectorTypeTable table) > at Exortech.NetReflector.NetReflectorReader.Read(XmlNode node) > 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) > ---------- > and ccnet.config: > <cruisecontrol> > <project name="MyProject" queue="Q1" queuePriority="0"> > > <workingDirectory>C:\ccnet\MyProject\code\trunk\</workingDirectory> > > <artifactDirectory>C:\ccnet\MyProject\artifacts\</artifactDirectory> > <category>Continuous build MyProject</category> > <webURL>http://localhost/ccnet/</webURL> > <triggers> > <intervalTrigger>name="continuous" seconds="60" > buildCondition="ifModificationExists"</intervalTrigger> > </triggers> > <state>type="state" directory="C:\ccnet\state\"</state> > <labeller type="defaultlabeller"> > <prefix>Build-</prefix> > <incrementOnFailure>false</incrementOnFailure> > </labeller> > <sourcecontrol type="svn" cleanCopy="true"> > > <trunkUrl>https://server:8443/svn/MyProject/</trunkUrl> > > <workingDirectory>C:\ccnet\MyProject\code\trunk\</workingDirectory> > <username>username</username> > <password>password</password> > </sourcecontrol> > <tasks> > <msbuild> > > <executable>C:\windows\Microsoft.NET\Framework\v3.5\MSBuild.exe</ > executable> > > <workingDirectory>C:\ccnet\MyProject\code\trunk\</ > workingDirectory> > <projectFile>MyProject.sln</projectFile> > <buildArgs> /noconsolelogger > /p:configuration=Debug /v:m</ > buildArgs> > <targets>Clean;Build</targets> > <timeout>600</timeout> > <logger>"C:\Program > Files\CruiseControl.NET\server > \ThoughtWorks.CruiseControl.MsBuild.dll"</logger> > </msbuild> > > </tasks> > > <publishers> > <!-- > <merge> > > <file>C:\ccnet\MyProject\artifacts\msbuild-resulsts.xml</file> > </merge> > --> > </publishers> > </project> > </cruisecontrol>
