I thought as much originally so I culled the config back to just send an email from a test page. Manually created and sent an email from the function which worked fine.
From: [email protected] [mailto:[email protected]] On Behalf Of Alan Heywood Sent: Thursday, 1 July 2010 11:25 AM To: ozDotNet Subject: Re: log4Net on Windows server 2008 Hi David, I am using log4net in IIS7 on Server 2008 without any issues. One thing you might want to check is that the App pool user has permission to write the log file. If your site is www.somesite.com, by default the application pool runs under a user called "IIS AppPool\www.somesite.com". The trick is that this user does NOT show up in the standard file\folder security dialog. You need to type it an as above, then click Check Names and it should be recognised. Failing this you could try Process Monitor to see if there are any failed writes to the log file due to security. Cheers, Alan On 1 July 2010 12:32, David Walker <[email protected]> wrote: Hey guys, Has anyone had any issues with getting log4net working in an ASP.Net project running on Windows Server 2008 (IIS 7). My configuration works on both my Windows 7 development machine and another windows server 2003 web server. I have cut the config down but still nothing works. This is a pretty broad question but I am kind of out of ideas. Cheers, Dave
