Hi Matt,

I've checked the code - what is probably happening is an unexpected
exception has been thrown and this completely kills the service. Like
Phil said, check the application log and you should see an error for
CCService.

There should always be something in the log for the service - it might
be the service is not logging in the location you are expecting. The
location of the log file is set as part of the log4net configuration.
In the default configuration there is an appender called
RollingFileAppender - the file element contains where the log is
written to. There is a appSetting called ServerLogFilePath, this is
just so CC.NET knows where to read the log from (yes, this is a
duplicate, but needed because of Log4Net).

As for the underlying cause, my initial guess is you're using a mapped
drive (e.g. to a network drive) based on the 'r:\'. The service is
running under an account that either doesn't have this drive mapped,
or doesn't have access to it. Check in the application log and see
what error is there - you can always post the error if it doesn't make
any sense.


Craig

On May 22, 9:03 am, "Phil Sayers" <[email protected]> wrote:
> Check the Application Log in event viewer.
>
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of Matt Schuckmann
> Sent: Thursday, May 21, 2009 5:00 PM
> To: ccnet-user
> Subject: [ccnet-user] AppSettings ccnet.config doesn't appear to be working
>
> I just upgraded to version 1.4.4 RC2 and I'm trying to place my
> ccnet.confg in an alternate place via a AppSettings element in
> ccservice.exe.config:
> <appSettings>
>   <add key="ccnet.config" value="r:\CruiseControl.NET
> \CCNET_Configuration\ccnet.config" />
>   ...
>   ...
> </appSettings>
>
> And it's not working the service just starts and then stops with no
> messages in the log file.
>
> If I start ccnet like so:
> ccnet.exe -ccnet.config:r:\CruiseControl.NET\CCNET_Configuration
> \ccnet.config
> it works fine.
>
> I found one other person that posted on this back in Nov 2008 but no
> fix was 
> postedhttp://www.mail-archive.com/[email protected]/msg00508.html
>
> Thanks
> Matt S.
> matt at schuckmannacres.com- Hide quoted text -
>
> - Show quoted text -

Reply via email to