Here are the config files... I posted the one from CCService and CCnet
just in case... I believe that CCNet.exe.config is the correct file
that needed to be modified, but I modified both..

CCService.exe.config (which I don't think I'm using):

<?xml version="1.0" encoding="utf-8"?>
<configuration>
        <configSections>
                <section name="xslFiles"
type="ThoughtWorks.CruiseControl.Core.Config.XslFilesSectionHandler,ThoughtWorks.CruiseControl.Core"/
>
                <section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
        </configSections>
        <!-- Specifies the stylesheets that are used to transform the build
results when using the EmailPublisher -->
        <xslFiles>
                <file name="xsl\header.xsl"/>
                <file name="xsl\compile.xsl"/>
                <file name="xsl\unittests.xsl"/>
                <file name="xsl\fit.xsl"/>
                <file name="xsl\modifications.xsl"/>
                <file name="xsl\fxcop-summary.xsl"/>
        </xslFiles>
        <!-- Defines the port and protocol that the ccnet server will use to
service remote requests -->
        <system.runtime.remoting>
                <application>
                        <channels>
                                <channel ref="tcp" port="21234">
                                        <serverProviders>
                                                <formatter ref="binary" 
typeFilterLevel="Full"/>
                                        </serverProviders>
                                </channel>
                        </channels>
                </application>
        </system.runtime.remoting>
        <log4net>
                <root>
                        <!--
                                Change the value in the next line to alter the 
amount of logging
generated by CruiseControl.NET.
                                The following values are supported: DEBUG, 
INFO, WARN, ERROR, OFF.
                                For more detailed information on how to 
configure log4net, see
http://logging.apache.org/log4net/
                                 -->
                        <level value="DEBUG"/>
                        <appender-ref ref="Console"/>
                        <appender-ref ref="RollingFileAppender"/>
                </root>
                <appender name="Console" 
type="log4net.Appender.ConsoleAppender">
                        <layout type="log4net.Layout.PatternLayout">
                                <conversionPattern value="[%thread:%level] 
%message%newline"/>
                        </layout>
                </appender>
                <appender name="RollingFileAppender"
type="log4net.Appender.RollingFileAppender">
                        <file value="ccnet.log"/>
                        <appendToFile value="true"/>
                        <rollingStyle value="Size"/>
                        <maxSizeRollBackups value="10"/>
                        <maximumFileSize value="10MB"/>
                        <staticLogFileName value="true"/>
                        <layout type="log4net.Layout.PatternLayout">
                                <!-- Note: Core.Logging.ServerLogFileReader 
depends on having
"[%thread" present in the pattern -->
                                <conversionPattern value="%date 
[%thread:%level] %message%newline"/
>
                        </layout>
                </appender>
        </log4net>
        <appSettings>
                <!-- Without this appSetting ccservice will look for 
ccnet.config in
its own directory. -->
                <add key="ccnet.config" value="C:\Documents and Settings
\Administrator\Perforce\analytics-build-ws3\GlobalPACS\dev\ccnet
\ccnet.config"/>
                <add key="service.name" value="CCService"/>
                <add key="remoting" value="on"/>
                <add key="ServerLogFilePath" value="ccnet.log"/>
                <!-- Used by the WebDashboard ServerLog plugin to locate the log
file produced by the LogFileTraceListener (above) -->
                <add key="ServerLogFileLines" value="100"/>
                <!-- Used by the WebDashboard ServerLog plugin to determine how 
many
lines from the log file should be read -->
                <add key="WatchConfigFile" value="true"/>
                <!-- Turns on or off the file watcher used to monitor the
ccnet.config file -->
        </appSettings>
        <startup>
        </startup>
</configuration>

CCnet.exe.config (I believe this is the correct file as I am running
CCnet.exe):

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="xslFiles"
type="ThoughtWorks.CruiseControl.Core.Config.XslFilesSectionHandler,ThoughtWorks.CruiseControl.Core"/
>
    <section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
  </configSections>
  <!-- Specifies the stylesheets that are used to transform the build
results when using the EmailPublisher -->
  <xslFiles>
    <file name="xsl\header.xsl"/>
    <file name="xsl\compile.xsl"/>
    <file name="xsl\unittests.xsl"/>
    <file name="xsl\fit.xsl"/>
    <file name="xsl\modifications.xsl"/>
    <file name="xsl\fxcop-summary.xsl"/>
  </xslFiles>
  <!-- Defines the port and protocol that the ccnet server will use to
service remote requests -->
  <system.runtime.remoting>
    <application>
      <channels>
        <channel ref="tcp" port="21234">
          <serverProviders>
            <formatter ref="binary" typeFilterLevel="Full"/>
          </serverProviders>
        </channel>
      </channels>
    </application>
  </system.runtime.remoting>
  <appSettings>
    <add key="ccnet.config" value="C:\Documents and Settings
\Administrator\Perforce\analytics-build-ws3\GlobalPACS\dev\ccnet
\ccnet.config"/>
    <add key="ServerLogFilePath" value="ccnet.log"/>
    <!-- Used by the WebDashboard ServerLog plugin to locate the log
file produced by the LogFileTraceListener (above) -->
    <add key="ServerLogFileLines" value="100"/>
    <!-- Used by the WebDashboard ServerLog plugin to determine how
many lines from the log file should be read -->
    <add key="WatchConfigFile" value="false"/>
    <!-- Turns on or off the file watcher used to monitor the
ccnet.config file -->
  </appSettings>
  <startup>
    <supportedRuntime version="v2.0.50727" />
  </startup>
  <log4net>
    <root>
      <!--
                                Change the value in the next line to alter the 
amount of logging
generated by CruiseControl.NET.
                                The following values are supported: DEBUG, 
INFO, WARN, ERROR, OFF.
                                For more detailed information on how to 
configure log4net, see
http://logging.apache.org/log4net/
                                 -->
      <level value="INFO"/>
      <appender-ref ref="Console"/>
      <appender-ref ref="RollingFileAppender"/>
    </root>
    <appender name="Console" type="log4net.Appender.ConsoleAppender">
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="[%thread:%level] %message%newline"/>
      </layout>
    </appender>
    <appender name="RollingFileAppender"
type="log4net.Appender.RollingFileAppender">
      <file value="ccnet.log"/>
      <appendToFile value="true"/>
      <rollingStyle value="Size"/>
      <maxSizeRollBackups value="10"/>
      <maximumFileSize value="10MB"/>
      <staticLogFileName value="true"/>
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread:%level] %message
%newline"/>
      </layout>
    </appender>
  </log4net>
</configuration>


On Jul 30, 4:21 am, Daniel Nauck <[email protected]> wrote:
> Hello,
>
> please post your config file.
>
> Daniel
>
> Kareem schrieb:
>
> > I'm trying to upload my ccnet.config file into my source control and i
> > followed the stepped listed online at Cruise Control:
>
> >http://confluence.public.thoughtworks.org/display/CCNET/Configure+Cru...
>
> > However when I try to start the server back up after changing the
> > settings in ccnet.exe.config, Cruise Control is STILL trying to look
> > at the default location for the file.
>
> > I've tried restarting the machine and the server, but it still is
> > trying to look at this default location no matter what. anybody else
> > have similar problems?
>
> > Thanks,
> > Kareem

Reply via email to