logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Psenner" <dpsen...@gmail.com>
Subject RE: Log file are not written in IIS7
Date Wed, 03 Oct 2012 11:04:51 GMT
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.


Mime
View raw message