You need to give the folder log4net is writing to read/write permissions for the identity user of the AppPool that the web service is running under.

In a related note, if you are using the event log appender you have to give that same account read/write permissions to the event log in the registry.

----- Original Message ----- From: "Ken Chu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Log4NET User" <[email protected]>
Sent: Tuesday, March 28, 2006 3:40 PM
Subject: Re: newbie question about configuration


Hi Devin,

Thanks for the suggestion. I had added Full Control permissions for "Everyone"
on the output directory, but that didn't help.

-Ken

--- Devin Smith <[EMAIL PROTECTED]> wrote:

On 3/24/06, Ken Chu <[EMAIL PROTECTED]> wrote:
> Hi .Net developers,
>
> I've been trying to get the log4net 1.2.9 beta's WebApp example to work
under
> ASP.NET 2.0 without any luck (using C# in VS2005).  I don't get any log
files
> nor trace output when I go to http://myhost/WebAppCS/Trace.axd. Here > are
the
> things I've tried to do:
>
> - make sure the directory for the log file is writable
> - setting the output log file with absolute path > (c:\tmp\webapp-log.txt)
> - change '\' to '\\' in the WebApp.dll.log4net file
> - copy the content of WebApp.dll.log4net into Web.config
> - turn on log4net internal debug flag (where does this output to?)
>
> Could someone tell me what I'm missing? Why isn't the WebForm1.asp > page
> producing a log file or trace output?  Is this because I converted this
.NET
> 1.0 project to .NET 2.0?
>

Hi Ken,

You didn't tell us which user you gave write access to.
Make sure that the directory you are writing your log files to has
write access by both ASP.NET user and the NETWORK SERVICE user. I
always forget which user w3wp runs under but this user needs the write
access.

Thanks,

Devin



Reply via email to