I’m using log4net 1.2.11. So, the logging is working in developer machine, but when i publish in a test server it is not working. Debugging remotely, i saw that the log is load correctly in ILog variable, but when it calls log.Error(), nothing happens, no log file, no log4net exception.
Any ideias?
Obs: i’m using the log4net in a asp.net mvc 3 website.
— EDIT
I put Full Control to EVERYONE… nothing change, no log file.
Enable log4net debugging to get more information about the problem. Without this, log4net fails silently and it’s very hard to troubleshoot configuration issues.
Check How do I enable log4net internal debugging? on log4net FAQS
Take into account if you have permissions problems (as Shyju pointed out) that the default identity for IIS 7.5 is
ApplicationPoolIdentityand notNetwork ServiceHere you have instructions about how to secure resources for ApplicationPoolIdentity
. Check section “Securing Resources”