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.

Reply via email to