I have WCF Service which is hosted in IIS 7.5 and I am using Log4Net for logging errors that are raised in the WCF Service. I have all the setting configured properly in my application as per the Log4Net samples configuration. My application
is working when I am using VS 2010 application server. But when I host the same Service in Windows 7 IIS 7.5 the log is being created with out any exception but there is no data in the log file.
One more thing is I have kept the Debugger in the ErrorLogger file of the Log4Net and seen all the values there, every thing is fine and I can see all the values are properly going till the last moment but in the log file nothing is present. I am unable
to understand why the service is not able to write the file in the specified path which is mentioned in the web.config file.
The Log4Net settings in the Presentation Layer is as follows.
<!-- Log4Net Appender for logging to Log file -->
<appender name="RollingFile" type="log4net.Appender.FileAppender">
<file value="D:\_log\EdgeLog.log" />
View Complete Post