RE: Log file are not written in IIS7

2012-10-04 Thread LakshmiThangaraj

what is the use of this property.. If i set this what are all the permissions
i need to set for the log folder in iis.


Thanks


Dominik Psenner wrote:
 
 Hi,
 
Am using log4net in my application. It works fine when i run via code. But
when i host it in IIS7 the log files are not written.

What is the preferred account used to write to the log file directory, I
tried network and network service and they did not work. I tried iusr and
that worked . Which is the rght user account to work with logfiles?
 
 you could try to add this to your web.config:
 
 system.web
   identity impersonate=true/
 /system.web
 
 Cheers,
 D.
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Log-file-are-not-written-in-IIS7-tp34508405p34512256.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.



RE: Log file are not written in IIS7

2012-10-04 Thread Dominik Psenner
what is the use of this property.. If i set this what are all the
permissions
i need to set for the log folder in iis.

I assumed that you configured log4net to log to a file to which IIS has no
permissions to write to. Thus you have to give IIS either the permissions or
impersonate the web application into a user that has the permissions. How to
do that can probably be found in the IIS or Windows manual.



RE: Log file are not written in IIS7

2012-10-03 Thread Dominik Psenner
Hi,

Am using log4net in my application. It works fine when i run via code. But
when i host it in IIS7 the log files are not written.

What is the preferred account used to write to the log file directory, I
tried network and network service and they did not work. I tried iusr and
that worked . Which is the rght user account to work with logfiles?

you could try to add this to your web.config:

system.web
identity impersonate=true/
/system.web

Cheers,
D.